Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 39 lines 905 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage (finalAttrs: { 10 pname = "lru-dict"; 11 version = "1.4.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "amitdev"; 16 repo = "lru-dict"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-pHjBTAXoOUyTSzzHzOBZeMFkJhzspylMhxwqXYLFOQg="; 19 }; 20 21 postPatch = '' 22 substituteInPlace pyproject.toml \ 23 --replace-fail "setuptools==" "setuptools>=" 24 ''; 25 26 build-system = [ setuptools ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "lru" ]; 31 32 meta = { 33 description = "Fast and memory efficient LRU cache for Python"; 34 homepage = "https://github.com/amitdev/lru-dict"; 35 changelog = "https://github.com/amitdev/lru-dict/releases/tag/${finalAttrs.src.tag}"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ hexa ]; 38 }; 39})