diff options
author | ishiy <y.ishihara.1993@gmail.com> | 2021-01-29 01:28:25 +0900 |
---|---|---|
committer | ishiy <y.ishihara.1993@gmail.com> | 2021-01-29 01:29:18 +0900 |
commit | c355637b4f182379eb9ffa3d9c492d3fb0b2dd74 (patch) | |
tree | 444fd25da5f43f6d1537bb96d0f07fcd3b30fd47 /pkgs/development/python-modules | |
parent | 8798f2c09aaba37d178767e58163d00c4d36707f (diff) |
python3Packages.chainer: refactor pytest
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/chainer/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/chainer/default.nix b/pkgs/development/python-modules/chainer/default.nix index ef218b615b9e..9dd656efa88b 100644 --- a/pkgs/development/python-modules/chainer/default.nix +++ b/pkgs/development/python-modules/chainer/default.nix @@ -1,5 +1,5 @@ { lib, buildPythonPackage, fetchFromGitHub, isPy3k -, filelock, protobuf, numpy, pytest, mock, typing-extensions +, filelock, protobuf, numpy, pytestCheckHook, mock, typing-extensions , cupy, cudaSupport ? false }: @@ -17,7 +17,7 @@ buildPythonPackage rec { }; checkInputs = [ - pytest + pytestCheckHook mock ]; @@ -28,10 +28,13 @@ buildPythonPackage rec { typing-extensions ] ++ lib.optionals cudaSupport [ cupy ]; - # avoid gpu tests - checkPhase = '' - pytest tests/chainer_tests/utils_tests -k 'not gpu and not cupy and not ideep' - ''; + pytestFlagsArray = [ "tests/chainer_tests/utils_tests" ]; + + disabledTests = [ + "gpu" + "cupy" + "ideep" + ]; meta = with lib; { description = "A flexible framework of neural networks for deep learning"; |