depot/third_party/nixpkgs/pkgs/development/python-modules/lru-dict/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

34 lines
611 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
let
pname = "lru-dict";
version = "1.1.7";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-RbgfZ9dTQdRDOrreeZpH6cQqniKhGFMdy15UmGQDLXw=";
};
checkInputs = [
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 ];
};
}