1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 sortedcontainers,
6}:
7
8buildPythonPackage rec {
9 pname = "expiring-dict";
10 version = "1.1.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-PEBK2x5DaUaMt+Ub+8nEcNfi6GPv4qHHXU7XBtDc4aY=";
16 };
17
18 propagatedBuildInputs = [ sortedcontainers ];
19
20 pythonImportsCheck = [ "expiring_dict" ];
21
22 meta = with lib; {
23 description = "Python dict with TTL support for auto-expiring caches";
24 homepage = "https://github.com/dparker2/py-expiring-dict";
25 license = licenses.mit;
26 maintainers = with maintainers; [ ];
27 };
28}