1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pytest-asyncio_0,
8 responses,
9}:
10
11buildPythonPackage rec {
12 pname = "backoff";
13 version = "2.2.1";
14 format = "pyproject";
15
16 src = fetchFromGitHub {
17 owner = "litl";
18 repo = "backoff";
19 tag = "v${version}";
20 hash = "sha256-g8bYGJ6Kw6y3BUnuoP1IAye5CL0geH5l7pTb3xxq7jI=";
21 };
22
23 nativeBuildInputs = [ poetry-core ];
24
25 nativeCheckInputs = [
26 pytest-asyncio_0
27 pytestCheckHook
28 responses
29 ];
30
31 pythonImportsCheck = [ "backoff" ];
32
33 meta = with lib; {
34 description = "Function decoration for backoff and retry";
35 homepage = "https://github.com/litl/backoff";
36 license = licenses.mit;
37 maintainers = with maintainers; [ chkno ];
38 };
39}