2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
dm-haiku,
|
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
|
|
|
tensorflow,
|
|
|
|
tensorflow-datasets,
|
|
|
|
flax,
|
|
|
|
optax,
|
2022-07-18 16:21:45 +00:00
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildPythonPackage {
|
2022-07-18 16:21:45 +00:00
|
|
|
pname = "optax-tests";
|
|
|
|
inherit (optax) version;
|
|
|
|
|
|
|
|
src = optax.testsout;
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontInstall = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-07-18 16:21:45 +00:00
|
|
|
dm-haiku
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
tensorflow
|
|
|
|
tensorflow-datasets
|
|
|
|
flax
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# See https://github.com/deepmind/optax/issues/323
|
|
|
|
"examples/lookahead_mnist_test.py"
|
|
|
|
];
|
|
|
|
}
|