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