blob: d757e1a642556670817eb6d90b316cdb3556b6e2 (
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
33
34
35
36
37
38
39
|
{ 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 ];
};
}
|