40 lines
760 B
Nix
40 lines
760 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
poetry-core,
|
||
|
pytestCheckHook,
|
||
|
pytest-asyncio,
|
||
|
responses,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "backoff";
|
||
|
version = "2.2.1";
|
||
|
format = "pyproject";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "litl";
|
||
|
repo = pname;
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-g8bYGJ6Kw6y3BUnuoP1IAye5CL0geH5l7pTb3xxq7jI=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [ poetry-core ];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
pytest-asyncio
|
||
|
pytestCheckHook
|
||
|
responses
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "backoff" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Function decoration for backoff and retry";
|
||
|
homepage = "https://github.com/litl/backoff";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ chkno ];
|
||
|
};
|
||
|
}
|