mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
ad50923108
https://github.com/amitdev/lru-dict/releases/tag/v1.2.0 - add changelog to meta - disable on unsupported Python releases
39 lines
744 B
Nix
39 lines
744 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
let
|
|
pname = "lru-dict";
|
|
version = "1.2.0";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-E8VngvGdaN302NsBcAQRkoWWFlFMcGsSbQ3y7HKhG9c=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"lru"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|