Files
nixpkgs/pkgs/development/python-modules/lru-dict/default.nix
T
Martin Weinelt 9c186b265d python3Packages.lru-dict: 1.3.0 -> 1.4.0
https://github.com/amitdev/lru-dict/releases/tag/v1.4.0

This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:29 +01:00

40 lines
905 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "lru-dict";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "amitdev";
repo = "lru-dict";
tag = "v${finalAttrs.version}";
hash = "sha256-pHjBTAXoOUyTSzzHzOBZeMFkJhzspylMhxwqXYLFOQg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools==" "setuptools>="
'';
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "lru" ];
meta = {
description = "Fast and memory efficient LRU cache for Python";
homepage = "https://github.com/amitdev/lru-dict";
changelog = "https://github.com/amitdev/lru-dict/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
})