1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
stdenv,
# build-system
hatchling,
# dependencies
absl-py,
etils,
flask,
flask-cors,
flax,
jax,
jaxlib,
jaxopt,
jinja2,
ml-collections,
mujoco,
mujoco-mjx,
numpy,
optax,
orbax-checkpoint,
pillow,
scipy,
tensorboardx,
typing-extensions,
# tests
dm-env,
gym,
pytestCheckHook,
pytest-xdist,
transforms3d,
}:
buildPythonPackage rec {
pname = "brax";
version = "0.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "google";
repo = "brax";
tag = "v${version}";
hash = "sha256-CkRXEYtlP8IhEZ7lVnpxlwiyLdICAfILwHfRUfuub08=";
};
build-system = [
hatchling
];
dependencies = [
absl-py
etils
flask
flask-cors
flax
jax
jaxlib
jaxopt
jinja2
ml-collections
mujoco
mujoco-mjx
numpy
optax
orbax-checkpoint
pillow
scipy
tensorboardx
typing-extensions
];
nativeCheckInputs = [
dm-env
gym
pytestCheckHook
pytest-xdist
transforms3d
];
disabledTests = [
# AttributeError: 'functools.partial' object has no attribute 'value'
"testModelEncoding0"
"testModelEncoding1"
"testTrain"
"testTrainDomainRandomize"
]
++ lib.optionals stdenv.hostPlatform.isAarch64 [
# Flaky:
# AssertionError: Array(-0.00135638, dtype=float32) != 0.0 within 0.001 delta (Array(0.00135638, dtype=float32) difference)
"test_pendulum_period2"
];
disabledTestPaths = [
# ValueError: matmul: Input operand 1 has a mismatch in its core dimension
"brax/generalized/constraint_test.py"
];
pythonImportsCheck = [
"brax"
];
meta = {
description = "Massively parallel rigidbody physics simulation on accelerator hardware";
homepage = "https://github.com/google/brax";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ nim65s ];
};
}
|