21cecf6002
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
26 lines
650 B
Nix
26 lines
650 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry, pytest-asyncio, }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "backoff";
|
|
version = "1.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "litl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-87IMcLaoCn0Vns8Ub/AFmv0gXtS0aPZX0cSt7+lOPm4=";
|
|
};
|
|
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [ poetry ];
|
|
|
|
checkInputs = [ pytestCheckHook pytest-asyncio ];
|
|
|
|
meta = with lib; {
|
|
description = "Function decoration for backoff and retry";
|
|
homepage = "https://github.com/litl/backoff";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ chkno ];
|
|
};
|
|
}
|