blob: 75626ecc07adc6ce44df4cded2b4f8af46b187d2 (
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
63
64
65
|
{ lib
, async-timeout
, buildPythonPackage
, deprecated
, fetchFromGitHub
, pympler
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, redis
, wrapt
}:
buildPythonPackage rec {
pname = "coredis";
version = "4.17.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "alisaifee";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-HfGmsIi8PnYbnC2020x474gtq0eqHjF7mSmRSHb0QxY=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace "-K" ""
'';
propagatedBuildInputs = [
async-timeout
deprecated
pympler
wrapt
];
nativeCheckInputs = [
pytestCheckHook
redis
pytest-asyncio
];
pythonImportsCheck = [
"coredis"
];
pytestFlagsArray = [
# All other tests require Docker
"tests/test_lru_cache.py"
"tests/test_parsers.py"
"tests/test_retry.py"
"tests/test_utils.py"
];
meta = with lib; {
description = "An async redis client with support for redis server, cluster & sentinel";
homepage = "https://github.com/alisaifee/coredis";
changelog = "https://github.com/alisaifee/coredis/blob/${src.rev}/HISTORY.rst";
license = licenses.mit;
maintainers = teams.wdz.members;
};
}
|