15 buildPythonPackage rec {
17 # upgrade may break sage, please test the sage build or ping @timokau on upgrade
19 format = "setuptools";
22 inherit pname version;
23 hash = "sha256-gXYGv2YbcdM+HQEkIZB6T4+wndgbfT464Xmzl4Agu/E=";
27 # generate cythonized extensions (auto_paridecl.pxd is crucial)
28 ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace
31 nativeBuildInputs = [ pari ];
33 buildInputs = [ gmp ];
35 propagatedBuildInputs = [
41 test -f "$out/${python.sitePackages}/cypari2/auto_paridecl.pxd"
50 description = "Cython bindings for PARI";
51 license = licenses.gpl2Plus;
52 maintainers = teams.sage.members;
53 homepage = "https://github.com/defeo/cypari2";