summaryrefslogtreecommitdiff
path: root/Biz/Bild/Deps/perscache.nix
blob: 508a261fe876c2cc1f290b93f4c704f2bacfcd7c (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
{ lib, sources, buildPythonPackage, beartype, cloudpickle, icontract, pbr }:

buildPythonPackage rec {
  pname = "perscache";
  version = sources.perscache.rev;

  src = sources.perscache;

  propagatedBuildInputs = [ beartype cloudpickle icontract pbr ];
  PBR_VERSION = version;

  doCheck = false; # no tests currently
  pythonImportsCheck = [ "perscache" ];

  meta = with lib; {
    description = ''
      An easy to use decorator for persistent memoization: like
      `functools.lrucache`, but results can be saved in any format to any
      storage.
    '';
    homepage = "https://github.com/leshchenko1979/perscache";
    license = licenses.mit;
    maintainers = with maintainers; [ bsima ];
  };
}