tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.symengine: cleanup
qbisi
6 months ago
1d4e4b48
56c70eb5
+15
-10
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
symengine
default.nix
+15
-10
pkgs/development/python-modules/symengine/default.nix
reviewed
···
3
3
buildPythonPackage,
4
4
fetchFromGitHub,
5
5
cython,
6
6
+
setuptools,
6
7
cmake,
7
8
symengine,
8
9
pytest,
9
10
sympy,
10
11
python,
11
11
-
setuptools,
12
12
}:
13
13
14
14
buildPythonPackage rec {
15
15
pname = "symengine";
16
16
version = "0.14.1";
17
17
-
18
18
-
build-system = [ setuptools ];
19
17
pyproject = true;
20
18
21
19
src = fetchFromGitHub {
···
23
25
hash = "sha256-adzODm7gAqwAf7qzfRQ1AG8mC3auiXM4OsV/0h+ZmUg=";
24
26
};
25
27
26
26
-
env = {
27
27
-
SymEngine_DIR = "${symengine}";
28
28
-
};
29
29
-
30
28
postPatch = ''
31
29
substituteInPlace setup.py \
32
30
--replace-fail "'cython>=0.29.24'" "'cython'"
33
31
'';
34
32
33
33
+
build-system = [
34
34
+
cython
35
35
+
setuptools
36
36
+
];
37
37
+
35
38
dontUseCmakeConfigure = true;
39
39
+
36
40
nativeBuildInputs = [
37
41
cmake
38
38
-
cython
42
42
+
];
43
43
+
44
44
+
buildInputs = [
45
45
+
symengine
39
46
];
40
47
41
48
nativeCheckInputs = [
···
50
47
51
48
checkPhase = ''
52
49
runHook preCheck
50
50
+
53
51
mkdir empty && cd empty
54
52
${python.interpreter} ../bin/test_python.py
53
53
+
55
54
runHook postCheck
56
55
'';
57
56
58
58
-
meta = with lib; {
57
57
+
meta = {
59
58
description = "Python library providing wrappers to SymEngine";
60
59
homepage = "https://github.com/symengine/symengine.py";
61
61
-
license = licenses.mit;
60
60
+
license = lib.licenses.mit;
62
61
maintainers = [ ];
63
62
};
64
63
}