Python: Difference between revisions
Poetry fix was not working... it should work now :) |
m extraLibPackages is not used in python-shell.nix. python-shell.nix re-import nixpkgs. |
||
Line 95: | Line 95: | ||
let | let | ||
myPython = pkgs. | # Choose your python version | ||
pythonPackages = pkgs. | myPython = pkgs.python3; | ||
pythonPackages = pkgs.python3Packages; | |||
pythonWithPkgs = myPython.withPackages (pythonPkgs: with pythonPkgs; [ | pythonWithPkgs = myPython.withPackages (pythonPkgs: with pythonPkgs; [ | ||
Line 113: | Line 114: | ||
]); | ]); | ||
extraBuildInputs = with | extraBuildInputs = with pythonPackages; [ | ||
# this list contains packages that you want to be available at runtime and might not be able to be installed properly via pip | # this list contains packages that you want to be available at runtime and might not be able to be installed properly via pip | ||
# | # pandas | ||
# | # requests | ||
]; | ] ++ (with pkgs; [ | ||
# | |||
]); | |||
in | in | ||
import ./python-shell.nix { | import ./python-shell.nix { | ||
extraBuildInputs = extraBuildInputs; | |||
# extraLibPackages = extraLibPackages; | |||
myPython = myPython; | |||
pythonWithPkgs = pythonWithPkgs; | |||
pkgs = pkgs; | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |