1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/cysignals/default.nix
2019-02-05 15:37:22 +01:00

51 lines
1.1 KiB
Nix

{ lib
, fetchPypi
, buildPythonPackage
, cython
, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
}:
assert pariSupport -> pari != null;
buildPythonPackage rec {
pname = "cysignals";
version = "1.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2";
};
# explicit check:
# build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
hardeningDisable = [
"fortify"
];
# known failure: https://github.com/sagemath/cysignals/blob/582dbf6a7b0f9ade0abe7a7b8720b7fb32435c3c/testgdb.py#L5
doCheck = false;
checkTarget = "check-install";
preCheck = ''
# Make sure cysignals-CSI is in PATH
export PATH="$out/bin:$PATH"
'';
buildInputs = lib.optionals pariSupport [
pari
];
propagatedBuildInputs = [
cython
];
enableParallelBuilding = true;
meta = {
description = "Interrupt and signal handling for Cython";
homepage = https://github.com/sagemath/cysignals/;
maintainers = with lib.maintainers; [ timokau ];
license = lib.licenses.lgpl3Plus;
};
}