2023-03-27 11:33:40 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
sortedcontainers,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "expiring-dict";
|
2024-09-29 15:04:29 +00:00
|
|
|
version = "1.1.1";
|
2023-03-27 11:33:40 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-29 15:04:29 +00:00
|
|
|
hash = "sha256-J3lC7cYNWxI0V8GkaGmMlJI9v6yNQLJjuSHATmlA3Ak=";
|
2023-03-27 11:33:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2023-03-27 11:33:40 +00:00
|
|
|
};
|
|
|
|
}
|