1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools_scm 5, pythonOlder 6}: 7 8if !(pythonOlder "3.3") then null else buildPythonPackage rec { 9 pname = "backports.functools_lru_cache"; 10 version = "1.5"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a"; 15 }; 16 17 buildInputs = [ setuptools_scm ]; 18 doCheck = false; # No proper test 19 20 meta = { 21 description = "Backport of functools.lru_cache"; 22 homepage = https://github.com/jaraco/backports.functools_lru_cache; 23 license = lib.licenses.mit; 24 }; 25}