From d6d8e9dba72fd7502aa9fb70f7915f0614519f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 12 May 2022 00:55:51 +0200 Subject: [PATCH] python310Packages.chainer: fix tests with new pytest warnings, little cleanup --- .../python-modules/chainer/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/chainer/default.nix b/pkgs/development/python-modules/chainer/default.nix index 79260173c54..1585d6d5e89 100644 --- a/pkgs/development/python-modules/chainer/default.nix +++ b/pkgs/development/python-modules/chainer/default.nix @@ -8,7 +8,6 @@ buildPythonPackage rec { version = "7.8.1"; disabled = !isPy3k; # python2.7 abandoned upstream - # no tests in Pypi tarball src = fetchFromGitHub { owner = "chainer"; repo = "chainer"; @@ -16,11 +15,6 @@ buildPythonPackage rec { sha256 = "1n07zjzc4g92m1sbgxvnansl0z00y4jnhma2mw06vnahs7s9nrf6"; }; - checkInputs = [ - pytestCheckHook - mock - ]; - propagatedBuildInputs = [ filelock protobuf @@ -28,11 +22,19 @@ buildPythonPackage rec { typing-extensions ] ++ lib.optionals cudaSupport [ cupy ]; + checkInputs = [ + pytestCheckHook + mock + ]; + pytestFlagsArray = [ "tests/chainer_tests/utils_tests" ]; - # cf. https://github.com/chainer/chainer/issues/8621 preCheck = '' + # cf. https://github.com/chainer/chainer/issues/8621 export CHAINER_WARN_VERSION_MISMATCH=0 + + # ignore pytest warnings not listed + rm setup.cfg ''; disabledTests = [