Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools_scm 5, isPy3k 6, pytest 7}: 8 9buildPythonPackage rec { 10 pname = "backports.functools_lru_cache"; 11 version = "1.5"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a"; 16 }; 17 18 buildInputs = [ setuptools_scm ]; 19 20 checkInputs = [ pytest ]; 21 22 checkPhase = '' 23 pytest 24 ''; 25 26 # Test fail on Python 2 27 doCheck = isPy3k; 28 29 meta = { 30 description = "Backport of functools.lru_cache"; 31 homepage = https://github.com/jaraco/backports.functools_lru_cache; 32 license = lib.licenses.mit; 33 }; 34}