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
python310Packages.treex: Enable more tests
Jonas Heinrich
3 years ago
29fe749d
2da64a81
+13
-15
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
treex
default.nix
+13
-15
pkgs/development/python-modules/treex/default.nix
···
14
14
, rich
15
15
, tensorflow
16
16
, treeo
17
17
+
, torchmetrics
18
18
+
, pythonRelaxDepsHook
19
19
+
, torch
17
20
}:
18
21
19
22
buildPythonPackage rec {
···
34
31
# At the time of writing (2022-03-29), rich is currently at version 11.0.0.
35
32
# The treeo dependency is compatible with a patch, but not marked as such in
36
33
# treex. See https://github.com/cgarciae/treex/issues/68.
37
37
-
postPatch = ''
38
38
-
substituteInPlace pyproject.toml \
39
39
-
--replace 'rich = "^11.2.0"' 'rich = "*"' \
40
40
-
--replace 'treeo = "^0.0.10"' 'treeo = "*"' \
41
41
-
--replace 'certifi = "^2021.10.8"' 'certifi = "*"'
42
42
-
'';
34
34
+
pythonRelaxDeps = [
35
35
+
"certifi"
36
36
+
"flax"
37
37
+
"rich"
38
38
+
"treeo"
39
39
+
];
43
40
44
41
nativeBuildInputs = [
45
42
poetry-core
43
43
+
pythonRelaxDepsHook
46
44
];
47
45
48
46
buildInputs = [ jaxlib ];
···
54
50
pyyaml
55
51
rich
56
52
treeo
53
53
+
torch
57
54
];
58
55
59
56
checkInputs = [
···
64
59
keras
65
60
pytestCheckHook
66
61
tensorflow
62
62
+
torchmetrics
67
63
];
68
64
69
69
-
pythonImportsCheck = [
70
70
-
"treex"
71
71
-
];
72
72
-
73
73
-
disabledTestPaths = [
74
74
-
# Require `torchmetrics` which is not packaged in `nixpkgs`.
75
75
-
"tests/metrics/test_mean_absolute_error.py"
76
76
-
"tests/metrics/test_mean_square_error.py"
77
77
-
];
65
65
+
pythonImportsCheck = [ "treex" ];
78
66
79
67
meta = with lib; {
80
68
description = "Pytree Module system for Deep Learning in JAX";