diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2022-02-25 21:14:22 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2022-02-25 21:18:23 +0100 |
commit | 7442533bf1bda4d21ff8abeec6b4d6f0f2deffa5 (patch) | |
tree | f4b34afe03945248872e92045660110b96dab4ef /pkgs/applications/science/math | |
parent | 8af32947b4de0299cc8f223a3787c782cc840a4b (diff) | |
download | nixpkgs-7442533bf1bda4d21ff8abeec6b4d6f0f2deffa5.tar nixpkgs-7442533bf1bda4d21ff8abeec6b4d6f0f2deffa5.tar.gz nixpkgs-7442533bf1bda4d21ff8abeec6b4d6f0f2deffa5.tar.bz2 nixpkgs-7442533bf1bda4d21ff8abeec6b4d6f0f2deffa5.tar.lz nixpkgs-7442533bf1bda4d21ff8abeec6b4d6f0f2deffa5.tar.xz nixpkgs-7442533bf1bda4d21ff8abeec6b4d6f0f2deffa5.tar.zst nixpkgs-7442533bf1bda4d21ff8abeec6b4d6f0f2deffa5.zip |
sage: support adding extra Python packages to environment
mysage = sage.override { extraPythonPackages = ps: with ps; [ dask ]; }; Note that the sage-tests are executed again as well, which is not very nice.
Diffstat (limited to 'pkgs/applications/science/math')
-rw-r--r-- | pkgs/applications/science/math/sage/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/sage/default.nix b/pkgs/applications/science/math/sage/default.nix index 2066087692a..4909deca2c6 100644 --- a/pkgs/applications/science/math/sage/default.nix +++ b/pkgs/applications/science/math/sage/default.nix @@ -1,5 +1,6 @@ { pkgs , withDoc ? false +, extraPythonPackages ? ps: [] }: # Here sage and its dependencies are put together. Some dependencies may be pinned @@ -109,7 +110,7 @@ let rpy2 sphinx pillow - ]; + ] ++ extraPythonPackages python3.pkgs; pythonEnv = python3.buildEnv.override { extraLibs = pythonRuntimeDeps; |