Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 55 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, python, fetchPypi, pari, gmp, cython, cysignals,
# Reverse dependency sage,}:
buildPythonPackage rec { pname = "cypari2"; # upgrade may break sage, please test the sage build or ping @timokau on upgrade version = "2.2.2"; format = "setuptools";
src = fetchPypi { inherit pname version; hash = "sha256-E6M4c16iIcEGj4/EFVYb93fYxoclcCvHSVRyZP0JFyA="; };
preBuild = '' # generate cythonized extensions (auto_paridecl.pxd is crucial) ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace '';
nativeBuildInputs = [ pari ];
buildInputs = [ gmp ];
propagatedBuildInputs = [ cysignals cython ];
checkPhase = '' test -f "$out/${python.sitePackages}/cypari2/auto_paridecl.pxd" make check '';
passthru.tests = { inherit sage; };
meta = with lib; { description = "Cython bindings for PARI"; license = licenses.gpl2Plus; teams = [ teams.sage ]; homepage = "https://github.com/defeo/cypari2"; };}