Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / backoff / default.nix
blob000f0244767609039e402d0f228193dbefcae8d8
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pytestCheckHook
6 , pytest-asyncio
7 , responses
8 }:
10 buildPythonPackage rec {
11   pname = "backoff";
12   version = "2.2.1";
13   format = "pyproject";
15   src = fetchFromGitHub {
16     owner = "litl";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-g8bYGJ6Kw6y3BUnuoP1IAye5CL0geH5l7pTb3xxq7jI=";
20   };
22   nativeBuildInputs = [
23     poetry-core
24   ];
26   nativeCheckInputs = [
27     pytest-asyncio
28     pytestCheckHook
29     responses
30   ];
32   pythonImportsCheck = [
33     "backoff"
34   ];
36   meta = with lib; {
37     description = "Function decoration for backoff and retry";
38     homepage = "https://github.com/litl/backoff";
39     license = licenses.mit;
40     maintainers = with maintainers; [ chkno ];
41   };