diff options
Diffstat (limited to 'pkgs/development/python-modules/cypari2/default.nix')
-rw-r--r-- | pkgs/development/python-modules/cypari2/default.nix | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/cypari2/default.nix b/pkgs/development/python-modules/cypari2/default.nix index 025692de1f740..3910cdd34f25a 100644 --- a/pkgs/development/python-modules/cypari2/default.nix +++ b/pkgs/development/python-modules/cypari2/default.nix @@ -1,12 +1,16 @@ -{ lib -, buildPythonPackage -, python -, fetchpatch -, fetchPypi -, pari -, gmp -, cython -, cysignals +{ + lib, + buildPythonPackage, + python, + fetchpatch, + fetchPypi, + pari, + gmp, + cython, + cysignals, + + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -35,13 +39,9 @@ buildPythonPackage rec { ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace ''; - nativeBuildInputs = [ - pari - ]; + nativeBuildInputs = [ pari ]; - buildInputs = [ - gmp - ]; + buildInputs = [ gmp ]; propagatedBuildInputs = [ cysignals @@ -53,6 +53,10 @@ buildPythonPackage rec { make check ''; + passthru.tests = { + inherit sage; + }; + meta = with lib; { description = "Cython bindings for PARI"; license = licenses.gpl2Plus; |