diff options
author | Timo Kaufmann <timokau@zoho.com> | 2018-04-11 18:25:50 +0200 |
---|---|---|
committer | Matthew Justin Bauer <mjbauer95@gmail.com> | 2018-04-21 20:39:56 -0500 |
commit | a037da9afe741c5197e1992f38d29d6bf4ee1e00 (patch) | |
tree | 433e90600904a864435b480b404636dcbe09db51 /pkgs/development/python-modules/cypari2 | |
parent | 9897e959f372445e11a8d683e5de74d0be0f10d4 (diff) | |
download | nixlib-a037da9afe741c5197e1992f38d29d6bf4ee1e00.tar nixlib-a037da9afe741c5197e1992f38d29d6bf4ee1e00.tar.gz nixlib-a037da9afe741c5197e1992f38d29d6bf4ee1e00.tar.bz2 nixlib-a037da9afe741c5197e1992f38d29d6bf4ee1e00.tar.lz nixlib-a037da9afe741c5197e1992f38d29d6bf4ee1e00.tar.xz nixlib-a037da9afe741c5197e1992f38d29d6bf4ee1e00.tar.zst nixlib-a037da9afe741c5197e1992f38d29d6bf4ee1e00.zip |
cypari2: init at 1.1.4
Diffstat (limited to 'pkgs/development/python-modules/cypari2')
-rw-r--r-- | pkgs/development/python-modules/cypari2/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cypari2/default.nix b/pkgs/development/python-modules/cypari2/default.nix new file mode 100644 index 000000000000..fc3c311a5061 --- /dev/null +++ b/pkgs/development/python-modules/cypari2/default.nix @@ -0,0 +1,55 @@ +{ stdenv +, bootstrapped-pip +, buildPythonPackage +, python +, fetchPypi +, pari +, gmp +, cython +, cysignals +, six +}: + +buildPythonPackage rec { + pname = "cypari2"; + version = "1.1.4"; # remove six dependency on upgrade to >1.1.4 + + src = fetchPypi { + inherit pname version; + sha256 = "0n0mp8qmvvzmfaawg39d3mkyzf65q2zkz7bnqyk4sfjbz4xwc6mb"; + }; + + # This differs slightly from the default python installPhase in that it pip-installs + # "." instead of "*.whl". + # That is because while the default install phase succeeds to build the package, + # it fails to generate the file "auto_paridecl.pxd". + installPhase = '' + mkdir -p "$out/lib/${python.libPrefix}/site-packages" + export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH" + + # install "." instead of "*.whl" + ${bootstrapped-pip}/bin/pip install --no-index --prefix=$out --no-cache --build=tmpdir . + ''; + + buildInputs = [ + pari + gmp + ]; + + propagatedBuildInputs = [ + cysignals + cython + six # after 1.1.4: will not be needed + ]; + + checkPhase = '' + make check + ''; + + meta = with stdenv.lib; { + description = "Cython bindings for PARI"; + license = licenses.gpl2; + maintainers = with maintainers; [ timokau ]; + homepage = https://github.com/defeo/cypari2; + }; +} |