aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/backoff/default.nix
blob: fd92351c4d83b2fc7b9e4d3e378f5ee57aab8313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ 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 ];
  };
}