nixpkgs/pkgs/development/python-modules/backoff/default.nix
2021-07-23 22:45:29 +02:00

27 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 ];
};
}