8 pari, # for interfacing with the PARI/GP signal handler
14 assert pariSupport -> pari != null;
16 buildPythonPackage rec {
19 format = "setuptools";
22 inherit pname version;
23 hash = "sha256-Dx4yHlWgf5AchqNqHkSX9v+d/nAGgdATCjjDbk6yOMM=";
27 # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
28 hardeningDisable = [ "fortify" ];
30 # known failure: https://github.com/sagemath/cysignals/blob/582dbf6a7b0f9ade0abe7a7b8720b7fb32435c3c/testgdb.py#L5
32 checkTarget = "check-install";
35 # Make sure cysignals-CSI is in PATH
36 export PATH="$out/bin:$PATH"
39 propagatedBuildInputs =
41 ++ lib.optionals pariSupport [
42 # When cysignals is built with pari, including cysignals into the
43 # buildInputs of another python package will cause cython to link against
48 nativeBuildInputs = [ autoreconfHook ];
50 enableParallelBuilding = true;
57 description = "Interrupt and signal handling for Cython";
58 mainProgram = "cysignals-CSI";
59 homepage = "https://github.com/sagemath/cysignals/";
60 maintainers = teams.sage.members;
61 license = licenses.lgpl3Plus;