1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 16:15:30 +00:00
nixpkgs/pkgs/development/python-modules/cysignals/default.nix
2018-07-11 22:25:08 +02: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.7.2";
src = fetchPypi {
inherit pname version;
sha256 = "0rzwd9bjw6bj01xcmimqfim1g0njjyyyal0f93frm1la4hcmq96v";
};
# 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"
'';
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;
};
}