2022-08-12 12:06:08 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry, pytest-asyncio, responses }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "backoff";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.1.2";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "litl";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-eKd1g3UxXlpSlNlik80RKXRaw4mZyvAWl3i2GNuZ3hI=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-asyncio responses ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Function decoration for backoff and retry";
|
|
|
|
homepage = "https://github.com/litl/backoff";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ chkno ];
|
|
|
|
};
|
|
|
|
}
|