nixpkgs/pkgs/development/python-modules/expiring-dict/default.nix
2024-10-13 11:03:19 +02:00

29 lines
597 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
sortedcontainers,
}:
buildPythonPackage rec {
pname = "expiring-dict";
version = "1.1.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-J3lC7cYNWxI0V8GkaGmMlJI9v6yNQLJjuSHATmlA3Ak=";
};
propagatedBuildInputs = [ sortedcontainers ];
pythonImportsCheck = [ "expiring_dict" ];
meta = with lib; {
description = "Python dict with TTL support for auto-expiring caches";
homepage = "https://github.com/dparker2/py-expiring-dict";
license = licenses.mit;
maintainers = [ ];
};
}