pythonPackages.backports_functools_lru_cache: enable tests
This commit is contained in:
parent
1ac3350c57
commit
f036eb62a9
|
@ -2,10 +2,11 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, pythonOlder
|
, isPy3k
|
||||||
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
if !(pythonOlder "3.3") then null else buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "backports.functools_lru_cache";
|
pname = "backports.functools_lru_cache";
|
||||||
version = "1.5";
|
version = "1.5";
|
||||||
|
|
||||||
|
@ -15,7 +16,15 @@ if !(pythonOlder "3.3") then null else buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptools_scm ];
|
buildInputs = [ setuptools_scm ];
|
||||||
doCheck = false; # No proper test
|
|
||||||
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Test fail on Python 2
|
||||||
|
doCheck = isPy3k;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Backport of functools.lru_cache";
|
description = "Backport of functools.lru_cache";
|
||||||
|
|
Loading…
Reference in New Issue