3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/optax/tests.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

36 lines
528 B
Nix

{ stdenv
, buildPythonPackage
, dm-haiku
, pytest-xdist
, pytestCheckHook
, tensorflow
, tensorflow-datasets
, flax
, optax
}:
buildPythonPackage rec {
pname = "optax-tests";
inherit (optax) version;
src = optax.testsout;
dontBuild = true;
dontInstall = true;
nativeCheckInputs = [
dm-haiku
pytest-xdist
pytestCheckHook
tensorflow
tensorflow-datasets
flax
];
disabledTestPaths = [
# See https://github.com/deepmind/optax/issues/323
"examples/lookahead_mnist_test.py"
];
}