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
63
64
65
66
67
68
69
70
|
{
bitarray,
buildPythonPackage,
dill,
diskcache,
fetchFromGitHub,
hiredis,
hypothesis,
lib,
pytest,
pytest-asyncio,
pytest-cov-stub,
pytest-rerunfailures,
pytestCheckHook,
redis,
setuptools,
xxhash,
}:
buildPythonPackage rec {
pname = "cashews";
version = "7.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Krukov";
repo = "cashews";
rev = "refs/tags/${version}";
hash = "sha256-7T9M8ioeTjW7OmcHyxZ6awNfp9kVU8Hi+Lgy17jXxK4=";
};
build-system = [ setuptools ];
passthru.optional-dependencies = {
dill = [ dill ];
diskcache = [ diskcache ];
redis = [ redis ];
speedup = [
bitarray
hiredis
xxhash
];
};
nativeCheckInputs = [
hypothesis
pytest
pytest-asyncio
pytest-cov-stub
pytest-rerunfailures
pytestCheckHook
];
disabledTests = [
# these tests require too many dependencies
"redis"
"diskcache"
"integration"
];
pythonImportsCheck = [ "cashews" ];
meta = {
description = "Cache tools with async power";
homepage = "https://github.com/Krukov/cashews/";
changelog = "https://github.com/Krukov/cashews/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
};
}
|