2017-12-30 12:36:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
2019-07-21 10:23:00 +01:00
|
|
|
, isPy3k
|
|
|
|
, pytest
|
2017-12-30 12:36:54 +00:00
|
|
|
}:
|
|
|
|
|
2019-07-21 10:23:00 +01:00
|
|
|
buildPythonPackage rec {
|
2017-12-30 12:36:54 +00:00
|
|
|
pname = "backports.functools_lru_cache";
|
2019-12-19 19:31:06 +00:00
|
|
|
version = "1.6.1";
|
2017-12-30 12:36:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:06 +00:00
|
|
|
sha256 = "8fde5f188da2d593bd5bc0be98d9abc46c95bb8a9dde93429570192ee6cc2d4a";
|
2017-12-30 12:36:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ setuptools_scm ];
|
2019-07-21 10:23:00 +01:00
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Test fail on Python 2
|
|
|
|
doCheck = isPy3k;
|
2017-12-30 12:36:54 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Backport of functools.lru_cache";
|
|
|
|
homepage = https://github.com/jaraco/backports.functools_lru_cache;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|