@@ -2,9 +2,11 @@
22, fetchPypi
33, buildPythonPackage
44, cython
5−, sphinx
5+, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
66}:
77
8+assert pariSupport -> pari != null;
9+
810buildPythonPackage rec {
911 pname = "cysignals";
1012 version = "1.7.1";
@@ -14,6 +16,8 @@ buildPythonPackage rec {
1416 sha256 = "15nky8siwlc7s8v23vv4m0mnxa1z6jcs2qfr26m2mkw9j9g2na2j";
1517 };
1618
19+ # explicit check:
20+ # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
1721 hardeningDisable = [
1822 "fortify"
1923 ];
@@ -26,6 +30,10 @@ buildPythonPackage rec {
2630 export PATH="$out/bin:$PATH"
2731 '';
2832
33+ buildInputs = lib.optionals pariSupport [
34+ pari
35+ ];
36+
2937 propagatedBuildInputs = [
3038 cython
3139 ];