1{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry, pytest-asyncio, }:
2
3buildPythonPackage rec {
4 pname = "backoff";
5 version = "1.11.1";
6
7 src = fetchFromGitHub {
8 owner = "litl";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-87IMcLaoCn0Vns8Ub/AFmv0gXtS0aPZX0cSt7+lOPm4=";
12 };
13
14 format = "pyproject";
15
16 nativeBuildInputs = [ poetry ];
17
18 checkInputs = [ pytestCheckHook pytest-asyncio ];
19
20 meta = with lib; {
21 description = "Function decoration for backoff and retry";
22 homepage = "https://github.com/litl/backoff";
23 license = licenses.mit;
24 maintainers = with maintainers; [ chkno ];
25 };
26}