From 7442533bf1bda4d21ff8abeec6b4d6f0f2deffa5 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 25 Feb 2022 21:14:22 +0100 Subject: 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. --- pkgs/applications/science/math/sage/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/science/math') 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; -- cgit 1.4.1