pythonPackages.pathpy: disable a test for 3.8

This commit is contained in:
Frederik Rietdijk 2019-10-16 17:22:00 +02:00
parent 977964a768
commit 568c2b9e5f

View File

@ -2,11 +2,12 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools_scm , setuptools_scm
, pytest , pytestCheckHook
, pytest-flake8 , pytest-flake8
, glibcLocales , glibcLocales
, packaging , packaging
, isPy27 , isPy27
, isPy38
, backports_os , backports_os
, importlib-metadata , importlib-metadata
, fetchpatch , fetchpatch
@ -21,7 +22,7 @@ buildPythonPackage rec {
sha256 = "9f2169633403aa0423f6ec000e8701dd1819526c62465f5043952f92527fea0f"; sha256 = "9f2169633403aa0423f6ec000e8701dd1819526c62465f5043952f92527fea0f";
}; };
checkInputs = [ pytest pytest-flake8 glibcLocales packaging ]; checkInputs = [ pytestCheckHook pytest-flake8 glibcLocales packaging ];
buildInputs = [ setuptools_scm ]; buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ propagatedBuildInputs = [
importlib-metadata importlib-metadata
@ -36,10 +37,11 @@ buildPythonPackage rec {
license = lib.licenses.mit; license = lib.licenses.mit;
}; };
checkPhase = '' # ignore performance test which may fail when the system is under load
# ignore performance test which may fail when the system is under load # test_version fails with 3.8 https://github.com/jaraco/path.py/issues/172
py.test -v -k 'not TestPerformance' disabledTests = [ "TestPerformance" ] ++ lib.optionals isPy38 [ "test_version"];
'';
dontUseSetuptoolsCheck = true;
patches = [ patches = [
(fetchpatch { (fetchpatch {