nixpkgs/pkgs/development/python-modules/cysignals/default.nix

51 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, fetchPypi
, buildPythonPackage
, cython
2018-06-28 11:44:22 +00:00
, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
}:
2018-06-28 11:44:22 +00:00
assert pariSupport -> pari != null;
buildPythonPackage rec {
pname = "cysignals";
version = "1.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "1yh4lyrinhxxra42p0k4hiyjdrqjmifg4gnmf4bky5wa0mqnyai6";
};
2018-06-28 11:44:22 +00:00
# explicit check:
# build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
hardeningDisable = [
"fortify"
];
# currently fails, probably because of formatting changes in gdb 8.0
# https://trac.sagemath.org/ticket/24692
doCheck = false;
preCheck = ''
# Make sure cysignals-CSI is in PATH
export PATH="$out/bin:$PATH"
'';
2018-06-28 11:44:22 +00:00
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;
};
}