diff --git a/pkgs/development/python-modules/optax/default.nix b/pkgs/development/python-modules/optax/default.nix index 6a3b6a9d3e67..ae8cfdbbc282 100644 --- a/pkgs/development/python-modules/optax/default.nix +++ b/pkgs/development/python-modules/optax/default.nix @@ -6,6 +6,7 @@ , jaxlib , lib , numpy +, pytest-xdist , pytestCheckHook }: @@ -32,8 +33,10 @@ buildPythonPackage rec { checkInputs = [ dm-haiku + pytest-xdist pytestCheckHook ]; + pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ]; pythonImportsCheck = [ "optax"