tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.ezyrb: cleanup, fix build
Gaetan Lepage
1 year ago
52a0e458
8166fb73
+29
-10
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
ezyrb
default.nix
+29
-10
pkgs/development/python-modules/ezyrb/default.nix
···
2
2
lib,
3
3
buildPythonPackage,
4
4
fetchFromGitHub,
5
5
-
pythonOlder,
5
5
+
6
6
+
# build-system
7
7
+
setuptools,
8
8
+
9
9
+
# dependencies
6
10
future,
7
11
numpy,
8
12
scipy,
9
13
matplotlib,
10
14
scikit-learn,
11
15
torch,
16
16
+
17
17
+
# tests
12
18
pytestCheckHook,
13
19
}:
14
20
15
21
buildPythonPackage rec {
16
22
pname = "ezyrb";
17
23
version = "1.3.0.post2404";
18
18
-
format = "setuptools";
19
19
-
20
20
-
disabled = pythonOlder "3.7";
24
24
+
pyproject = true;
21
25
22
26
src = fetchFromGitHub {
23
27
owner = "mathLab";
···
26
30
hash = "sha256-nu75Geyeu1nTLoGaohXB9pmbUWKgdgch9Z5OJqz9xKQ=";
27
31
};
28
32
29
29
-
propagatedBuildInputs = [
33
33
+
# AttributeError: module 'numpy' has no attribute 'VisibleDeprecationWarning'
34
34
+
postPatch = ''
35
35
+
substituteInPlace \
36
36
+
tests/test_k_neighbors_regressor.py \
37
37
+
tests/test_linear.py \
38
38
+
tests/test_radius_neighbors_regressor.py \
39
39
+
--replace-fail \
40
40
+
"np.VisibleDeprecationWarning" \
41
41
+
"np.exceptions.VisibleDeprecationWarning"
42
42
+
'';
43
43
+
44
44
+
build-system = [
45
45
+
setuptools
46
46
+
];
47
47
+
48
48
+
dependencies = [
30
49
future
50
50
+
matplotlib
31
51
numpy
52
52
+
scikit-learn
32
53
scipy
33
33
-
matplotlib
34
34
-
scikit-learn
35
54
torch
36
55
];
37
56
···
44
63
"tests/test_podae.py"
45
64
];
46
65
47
47
-
meta = with lib; {
66
66
+
meta = {
48
67
description = "Easy Reduced Basis method";
49
68
homepage = "https://mathlab.github.io/EZyRB/";
50
69
downloadPage = "https://github.com/mathLab/EZyRB/releases";
51
51
-
license = licenses.mit;
52
52
-
maintainers = with maintainers; [ yl3dy ];
70
70
+
license = lib.licenses.mit;
71
71
+
maintainers = with lib.maintainers; [ yl3dy ];
53
72
};
54
73
}