depot/third_party/nixpkgs/pkgs/development/python-modules/backoff/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

26 lines
651 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry, pytest-asyncio, }:
buildPythonPackage rec {
pname = "backoff";
version = "1.10.0";
src = fetchFromGitHub {
owner = "litl";
repo = pname;
rev = "v${version}";
sha256 = "1jj0l6pjx747d2yyvnzd3qbm4qr73sq6cc56dhvd8wqfbp5279x0";
};
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 ];
};
}