torchvision: update reason why tests fails

This commit is contained in:
Jörg Thalheim 2020-12-30 07:42:16 +01:00
parent 77c70abb81
commit d198cbabe7
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92

View File

@ -9,7 +9,7 @@
, scipy , scipy
, pillow , pillow
, pytorch , pytorch
, pytestCheckHook , pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -32,12 +32,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ numpy pillow pytorch scipy ]; propagatedBuildInputs = [ numpy pillow pytorch scipy ];
# checks fail to import _C.so and various other failures # tries to download many datasets for tests
doCheck = false; doCheck = false;
checkInputs = [ pytestCheckHook ]; checkPhase = ''
HOME=$TMPDIR py.test test --ignore=test/test_datasets_download.py
'';
pytestFlagsArray = [ "--ignore=test/test_datasets_download.py" ]; checkInputs = [ pytest ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "PyTorch vision library"; description = "PyTorch vision library";