-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
47 lines (43 loc) · 1.13 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
pkgs ? import <nixpkgs> { },
}:
let
myPython = pkgs.python312;
pythonPackages = pkgs.python311Packages;
pythonWithPkgs = myPython.withPackages (
pythonPkgs: with pythonPkgs; [
# This list contains tools for Python development.
# You can also add other tools, like black.
#
# Note that even if you add Python packages here like PyTorch or Tensorflow,
# they will be reinstalled when running `pip -r requirements.txt` because
# virtualenv is used below in the shellHook.
ipython
pip
setuptools
virtualenvwrapper
wheel
black
pylint
flake8
pytest-cov
pytest
pdoc
twine
build
pillow
]
);
extraBuildInputs = with pkgs; [
# this list contains packages that you want to be available at runtime and might not be able to be installed properly via pip
# pythonPackages.pandas
# pythonPackages.requests
];
extraLibPackages = with pkgs; [ ];
in
import ./python-shell.nix {
extraBuildInputs = extraBuildInputs;
extraLibPackages = extraLibPackages;
myPython = myPython;
pythonWithPkgs = pythonWithPkgs;
}