2023-04-19 11:52:47 +01:00
|
|
|
{ pkgs ? import <nixpkgs> { }, python ? pkgs.python39, ... }:
|
2023-04-04 09:48:40 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
python-packages = ps: with ps; [
|
|
|
|
pip
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
in
|
|
|
|
pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
(python.withPackages python-packages)
|
2023-05-05 17:58:05 +01:00
|
|
|
poetry
|
2023-04-26 16:26:13 +01:00
|
|
|
black
|
|
|
|
isort
|
|
|
|
ruff
|
2023-04-04 09:48:40 +01:00
|
|
|
git
|
|
|
|
];
|
|
|
|
|
|
|
|
shellHook = ''
|
2023-04-19 11:52:47 +01:00
|
|
|
export LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib/"
|
2023-04-20 16:01:26 +01:00
|
|
|
[ -d .venv ] || python -m venv .venv
|
|
|
|
[ -d .venv ] && source .venv/bin/activate
|
2023-04-04 09:48:40 +01:00
|
|
|
'';
|
|
|
|
}
|