tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.cysignals: 1.11.4 -> 1.12.2
Martin Weinelt
1 year ago
bba0d2bf
52b9fa43
+19
-24
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
cysignals
default.nix
+19
-24
pkgs/development/python-modules/cysignals/default.nix
···
1
1
{
2
2
lib,
3
3
-
autoreconfHook,
4
4
-
fetchPypi,
3
3
+
fetchFromGitHub,
5
4
buildPythonPackage,
6
5
cython,
7
7
-
pariSupport ? true,
8
8
-
pari, # for interfacing with the PARI/GP signal handler
6
6
+
meson-python,
7
7
+
ninja,
9
8
10
9
# Reverse dependency
11
10
sage,
12
11
}:
13
13
-
14
14
-
assert pariSupport -> pari != null;
15
12
16
13
buildPythonPackage rec {
17
14
pname = "cysignals";
18
18
-
version = "1.11.4";
19
19
-
format = "setuptools";
15
15
+
version = "1.12.2";
16
16
+
pyproject = true;
20
17
21
21
-
src = fetchPypi {
22
22
-
inherit pname version;
23
23
-
hash = "sha256-Dx4yHlWgf5AchqNqHkSX9v+d/nAGgdATCjjDbk6yOMM=";
18
18
+
src = fetchFromGitHub {
19
19
+
owner = "sagemath";
20
20
+
repo = "cysignals";
21
21
+
tag = version;
22
22
+
hash = "sha256-oRwuAUl1sUUhMJuvLwAbb9tCXXymyKFamQtJRixfQvo=";
24
23
};
25
24
25
25
+
build-system = [
26
26
+
cython
27
27
+
meson-python
28
28
+
ninja
29
29
+
];
30
30
+
31
31
+
dontUseCmakeConfigure = true;
32
32
+
enableParallelBuilding = true;
33
33
+
26
34
# explicit check:
27
35
# build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
28
36
hardeningDisable = [ "fortify" ];
···
35
43
# Make sure cysignals-CSI is in PATH
36
44
export PATH="$out/bin:$PATH"
37
45
'';
38
38
-
39
39
-
propagatedBuildInputs =
40
40
-
[ cython ]
41
41
-
++ lib.optionals pariSupport [
42
42
-
# When cysignals is built with pari, including cysignals into the
43
43
-
# buildInputs of another python package will cause cython to link against
44
44
-
# pari.
45
45
-
pari
46
46
-
];
47
47
-
48
48
-
nativeBuildInputs = [ autoreconfHook ];
49
49
-
50
50
-
enableParallelBuilding = true;
51
46
52
47
passthru.tests = {
53
48
inherit sage;