2023-04-03 09:24:26 +01:00
|
|
|
{ pkgs ? import <nixpkgs> {}, python ? pkgs.python39, ... }:
|
2023-03-31 09:38:04 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
python-packages = ps: with ps; [
|
|
|
|
pip
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
in
|
2023-04-03 09:24:26 +01:00
|
|
|
pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
(python.withPackages python-packages)
|
|
|
|
git
|
|
|
|
zlib
|
|
|
|
libgccjit
|
2023-03-31 09:38:04 +01:00
|
|
|
];
|
2023-04-03 09:24:26 +01:00
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
export LD_LIBRARY_PATH="${pkgs.zlib}/lib:${pkgs.libgccjit}/lib"
|
|
|
|
python -m venv .venv
|
|
|
|
source .venv/bin/activate
|
2023-04-03 13:29:15 +01:00
|
|
|
pip list --outdated | grep -iE "^(pip|wheel)" > /dev/null && python -m pip install --upgrade pip wheel
|
2023-03-31 09:38:04 +01:00
|
|
|
'';
|
2023-04-03 09:24:26 +01:00
|
|
|
}
|