diff options
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 | 18 |
1 files changed, 11 insertions, 7 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 2a8b5e7960d..8cb84c02b37 100644 --- a/pkgs/development/python-modules/backports_functools_lru_cache/default.nix +++ b/pkgs/development/python-modules/backports_functools_lru_cache/default.nix @@ -4,23 +4,27 @@ , setuptools_scm , isPy3k , pytest +, pytest-black +, pytest-flake8 +, pytestcov }: buildPythonPackage rec { pname = "backports.functools_lru_cache"; - version = "1.5"; + version = "1.6.1"; src = fetchPypi { inherit pname version; - sha256 = "9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a"; + sha256 = "8fde5f188da2d593bd5bc0be98d9abc46c95bb8a9dde93429570192ee6cc2d4a"; }; - buildInputs = [ setuptools_scm ]; - - checkInputs = [ pytest ]; + nativeBuildInputs = [ setuptools_scm ]; + checkInputs = [ pytest pytest-flake8 pytest-black pytestcov ]; + # ironically, they fail a linting test, and pytest.ini forces that test suite checkPhase = '' - pytest + rm backports/functools_lru_cache.py + pytest -k 'not format' ''; # Test fail on Python 2 @@ -31,4 +35,4 @@ buildPythonPackage rec { homepage = https://github.com/jaraco/backports.functools_lru_cache; license = lib.licenses.mit; }; -} \ No newline at end of file +} |