pythonPackages.backports_functools_lru_cache: fix tests
This commit is contained in:
parent
be3f724ae9
commit
e05e32ae04
@ -4,6 +4,9 @@
|
|||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, pytest
|
, pytest
|
||||||
|
, pytest-black
|
||||||
|
, pytest-flake8
|
||||||
|
, pytestcov
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -15,12 +18,13 @@ buildPythonPackage rec {
|
|||||||
sha256 = "8fde5f188da2d593bd5bc0be98d9abc46c95bb8a9dde93429570192ee6cc2d4a";
|
sha256 = "8fde5f188da2d593bd5bc0be98d9abc46c95bb8a9dde93429570192ee6cc2d4a";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
|
||||||
|
|
||||||
|
checkInputs = [ pytest pytest-flake8 pytest-black pytestcov ];
|
||||||
|
# ironically, they fail a linting test, and pytest.ini forces that test suite
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest
|
rm backports/functools_lru_cache.py
|
||||||
|
pytest -k 'not format'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Test fail on Python 2
|
# Test fail on Python 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user