567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
cython,
|
|
meson-python,
|
|
ninja,
|
|
|
|
# Reverse dependency
|
|
sage,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cysignals";
|
|
version = "1.12.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sagemath";
|
|
repo = "cysignals";
|
|
tag = version;
|
|
hash = "sha256-uZNKmnn1Jf1pERdG4bywpAUClKMw3og+7Q5B0yPlqEY=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
meson-python
|
|
ninja
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
enableParallelBuilding = true;
|
|
|
|
# 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"
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit sage;
|
|
};
|
|
|
|
meta = {
|
|
description = "Interrupt and signal handling for Cython";
|
|
mainProgram = "cysignals-CSI";
|
|
homepage = "https://github.com/sagemath/cysignals/";
|
|
teams = [ lib.teams.sage ];
|
|
license = lib.licenses.lgpl3Plus;
|
|
};
|
|
}
|