cysignals: add pari support

This commit is contained in:
Timo Kaufmann 2018-06-28 13:44:22 +02:00
parent 4655b8776d
commit f49f133513

View File

@ -2,9 +2,11 @@
, fetchPypi
, buildPythonPackage
, cython
, sphinx
, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
}:
assert pariSupport -> pari != null;
buildPythonPackage rec {
pname = "cysignals";
version = "1.7.1";
@ -14,6 +16,8 @@ buildPythonPackage rec {
sha256 = "15nky8siwlc7s8v23vv4m0mnxa1z6jcs2qfr26m2mkw9j9g2na2j";
};
# explicit check:
# build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
hardeningDisable = [
"fortify"
];
@ -26,6 +30,10 @@ buildPythonPackage rec {
export PATH="$out/bin:$PATH"
'';
buildInputs = lib.optionals pariSupport [
pari
];
propagatedBuildInputs = [
cython
];