5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
42 lines
759 B
Nix
42 lines
759 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, responses
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "backoff";
|
|
version = "2.1.2";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "litl";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-eKd1g3UxXlpSlNlik80RKXRaw4mZyvAWl3i2GNuZ3hI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|