mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
cysignals: add pari support
This commit is contained in:
parent
4655b8776d
commit
f49f133513
1 changed files with 9 additions and 1 deletions
|
@ -2,9 +2,11 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython
|
, cython
|
||||||
, sphinx
|
, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert pariSupport -> pari != null;
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "cysignals";
|
pname = "cysignals";
|
||||||
version = "1.7.1";
|
version = "1.7.1";
|
||||||
|
@ -14,6 +16,8 @@ buildPythonPackage rec {
|
||||||
sha256 = "15nky8siwlc7s8v23vv4m0mnxa1z6jcs2qfr26m2mkw9j9g2na2j";
|
sha256 = "15nky8siwlc7s8v23vv4m0mnxa1z6jcs2qfr26m2mkw9j9g2na2j";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# explicit check:
|
||||||
|
# build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
|
||||||
hardeningDisable = [
|
hardeningDisable = [
|
||||||
"fortify"
|
"fortify"
|
||||||
];
|
];
|
||||||
|
@ -26,6 +30,10 @@ buildPythonPackage rec {
|
||||||
export PATH="$out/bin:$PATH"
|
export PATH="$out/bin:$PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildInputs = lib.optionals pariSupport [
|
||||||
|
pari
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cython
|
cython
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue