blob: 375beadd4f6dc6e067d727a076c3151320e5d933 (
plain) (
blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{ lib
, buildPythonPackage
, cherrypy
, fetchPypi
, filelock
, msgpack
, pdm-backend
, pytestCheckHook
, pythonOlder
, redis
, requests
}:
buildPythonPackage rec {
pname = "cacheyou";
version = "23.3";
format = "pyproject";
disabled = pythonOlder "3.7";
__darwinAllowLocalNetworking = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-fkCPFfSXj+oiR3NLMIYh919/4Wm0YWeVGccuioXWHV0=";
};
nativeBuildInputs = [
pdm-backend
];
propagatedBuildInputs = [
msgpack
requests
];
passthru.optional-dependencies = {
filecache = [
filelock
];
redis = [
redis
];
};
nativeCheckInputs = [
cherrypy
pytestCheckHook
] ++ passthru.optional-dependencies.filecache;
pythonImportsCheck = [
"cacheyou"
];
meta = {
description = "The httplib2 caching algorithms packaged up for use with requests";
homepage = "https://github.com/frostming/cacheyou";
changelog = "https://github.com/frostming/cacheyou/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ natsukium ];
};
}
|