Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 617 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5}: 6 7let 8 pname = "lru-dict"; 9 version = "1.1.8"; 10in 11buildPythonPackage { 12 inherit pname version; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-h4vI70Bz5c+5U9/Bz0WF20HouBTAEGq9400A7g0LMRU="; 18 }; 19 20 nativeCheckInputs = [ 21 pytestCheckHook 22 ]; 23 24 pythonImportsCheck = [ 25 "lru" 26 ]; 27 28 meta = with lib; { 29 description = "Fast and memory efficient LRU cache for Python"; 30 homepage = "https://github.com/amitdev/lru-dict"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ hexa ]; 33 }; 34}