depot/third_party/nixpkgs/pkgs/development/python-modules/lru-dict/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

34 lines
617 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
let
pname = "lru-dict";
version = "1.1.8";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-h4vI70Bz5c+5U9/Bz0WF20HouBTAEGq9400A7g0LMRU=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"lru"
];
meta = with lib; {
description = "Fast and memory efficient LRU cache for Python";
homepage = "https://github.com/amitdev/lru-dict";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}