summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/expiring-dict/default.nix
blob: ce39c7151918901e6c46fbbf8d1b183707d8e770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  sortedcontainers,
}:

buildPythonPackage rec {
  pname = "expiring-dict";
  version = "1.1.2";
  pyproject = true;

  src = fetchPypi {
    pname = "expiring_dict";
    inherit version;
    hash = "sha256-yoy4AjBOrlszoj7EwZAZthCt/aUMvEyb+jrVws04djE=";
  };

  build-system = [ setuptools ];

  dependencies = [ sortedcontainers ];

  pythonImportsCheck = [ "expiring_dict" ];

  meta = {
    description = "Python dict with TTL support for auto-expiring caches";
    homepage = "https://github.com/dparker2/py-expiring-dict";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}