2017-12-30 13:36:54 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
2018-01-24 14:00:02 +01:00
|
|
|
, pythonOlder
|
2017-12-30 13:36:54 +01:00
|
|
|
}:
|
|
|
|
|
2018-01-24 14:00:02 +01:00
|
|
|
if !(pythonOlder "3.3") then null else buildPythonPackage rec {
|
2017-12-30 13:36:54 +01:00
|
|
|
pname = "backports.functools_lru_cache";
|
2017-12-30 13:37:09 +01:00
|
|
|
version = "1.4";
|
2017-12-30 13:36:54 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 13:37:09 +01:00
|
|
|
sha256 = "31f235852f88edc1558d428d890663c49eb4514ffec9f3650e7f3c9e4a12e36f";
|
2017-12-30 13:36:54 +01: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;
|
|
|
|
};
|
|
|
|
}
|