2020-08-20 17:08:02 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry, pytest-asyncio, }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "backoff";
|
2021-07-24 12:14:16 +00:00
|
|
|
version = "1.11.1";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "litl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-24 12:14:16 +00:00
|
|
|
sha256 = "sha256-87IMcLaoCn0Vns8Ub/AFmv0gXtS0aPZX0cSt7+lOPm4=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|