pythonPackages.backports_functools_lru_cache: enable tests

This commit is contained in:
Mario Rodas 2019-07-21 04:23:00 -05:00
parent 1ac3350c57
commit f036eb62a9
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8

View File

@ -2,10 +2,11 @@
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pythonOlder
, isPy3k
, pytest
}:
if !(pythonOlder "3.3") then null else buildPythonPackage rec {
buildPythonPackage rec {
pname = "backports.functools_lru_cache";
version = "1.5";
@ -15,7 +16,15 @@ if !(pythonOlder "3.3") then null else buildPythonPackage rec {
};
buildInputs = [ setuptools_scm ];
doCheck = false; # No proper test
checkInputs = [ pytest ];
checkPhase = ''
pytest
'';
# Test fail on Python 2
doCheck = isPy3k;
meta = {
description = "Backport of functools.lru_cache";