mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
27 lines
650 B
Nix
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 ];
|
|
};
|
|
}
|