1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytest-asyncio,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools-scm,
9 tornado,
10 typeguard,
11}:
12
13buildPythonPackage rec {
14 pname = "tenacity";
15 version = "9.1.2";
16 pyproject = true;
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-EWnTdsKX5944jRi0SBdg1Hiw6Zp3fK06nIblVvS2l8s=";
23 };
24
25 build-system = [ setuptools-scm ];
26
27 nativeCheckInputs = [
28 pytest-asyncio
29 pytestCheckHook
30 tornado
31 typeguard
32 ];
33
34 pythonImportsCheck = [ "tenacity" ];
35
36 meta = with lib; {
37 homepage = "https://github.com/jd/tenacity";
38 changelog = "https://github.com/jd/tenacity/releases/tag/${version}";
39 description = "Retrying library for Python";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ jakewaksbaum ];
42 };
43}