3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/backports_functools_lru_cache/default.nix

34 lines
625 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, isPy3k
, pytest
}:
buildPythonPackage rec {
pname = "backports.functools_lru_cache";
version = "1.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "8fde5f188da2d593bd5bc0be98d9abc46c95bb8a9dde93429570192ee6cc2d4a";
};
buildInputs = [ setuptools_scm ];
checkInputs = [ pytest ];
checkPhase = ''
pytest
'';
# Test fail on Python 2
doCheck = isPy3k;
meta = {
description = "Backport of functools.lru_cache";
homepage = https://github.com/jaraco/backports.functools_lru_cache;
license = lib.licenses.mit;
};
}