blob: e63ac8f257cd80a3989f3e30c33317f455ada3c2 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
pytest-asyncio,
pytestCheckHook,
setuptools-scm,
tornado,
typeguard,
}:
buildPythonPackage rec {
pname = "tenacity";
version = "9.1.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-EWnTdsKX5944jRi0SBdg1Hiw6Zp3fK06nIblVvS2l8s=";
};
patches = [
(fetchpatch {
url = "https://github.com/jd/tenacity/commit/eed7d785e667df145c0e3eeddff59af64e4e860d.patch";
includes = [
"tenacity/__init__.py"
"tests/test_asyncio.py"
"tests/test_issue_478.py"
];
hash = "sha256-TMhBjRmG7pBP3iKq83RQzkV9yO2TEcA+3mo9cz6daxs=";
})
];
build-system = [ setuptools-scm ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
tornado
typeguard
];
pythonImportsCheck = [ "tenacity" ];
meta = {
homepage = "https://github.com/jd/tenacity";
changelog = "https://github.com/jd/tenacity/releases/tag/${version}";
description = "Retrying library for Python";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jakewaksbaum ];
};
}
|