python310Packages.chainer: fix tests with new pytest warnings, little cleanup
This commit is contained in:
parent
4c3bcf7f4d
commit
d6d8e9dba7
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue