2017-12-30 12:36:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
2018-01-24 13:00:02 +00:00
|
|
|
, pythonOlder
|
2017-12-30 12:36:54 +00:00
|
|
|
}:
|
|
|
|
|
2018-01-24 13:00:02 +00:00
|
|
|
if !(pythonOlder "3.3") then null else buildPythonPackage rec {
|
2017-12-30 12:36:54 +00:00
|
|
|
pname = "backports.functools_lru_cache";
|
2018-02-17 13:18:22 +00:00
|
|
|
version = "1.5";
|
2017-12-30 12:36:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-17 13:18:22 +00:00
|
|
|
sha256 = "9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a";
|
2017-12-30 12:36:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
doCheck = false; # No proper test
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Backport of functools.lru_cache";
|
|
|
|
homepage = https://github.com/jaraco/backports.functools_lru_cache;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|