diff options
author | Orivej Desh <orivej@gmx.fr> | 2019-07-25 09:23:01 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2019-07-25 09:23:21 +0000 |
commit | 32fbbc6f9bb1bbda436bbcc4e7bc613c9148221b (patch) | |
tree | fcc3746d350ac20ff693adb7c40f945274e4d2f6 /pkgs/development/python-modules/backports_functools_lru_cache/default.nix | |
parent | aabb651b23969ea4c901914db6ca34eb2897f7a0 (diff) | |
parent | b5d1d50aa90e0780c57fb4b323203ea5056be857 (diff) |
Merge master into staging
Diffstat (limited to 'pkgs/development/python-modules/backports_functools_lru_cache/default.nix')
-rw-r--r-- | pkgs/development/python-modules/backports_functools_lru_cache/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/backports_functools_lru_cache/default.nix b/pkgs/development/python-modules/backports_functools_lru_cache/default.nix index bcaa844720bd3..2a8b5e7960d46 100644 --- a/pkgs/development/python-modules/backports_functools_lru_cache/default.nix +++ b/pkgs/development/python-modules/backports_functools_lru_cache/default.nix @@ -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"; |