biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / backoff / default.nix
blob46e0f80bf24026c5971e6ebe85349b5d2497e4d5
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   pytestCheckHook,
7   pytest-asyncio,
8   responses,
9 }:
11 buildPythonPackage rec {
12   pname = "backoff";
13   version = "2.2.1";
14   format = "pyproject";
16   src = fetchFromGitHub {
17     owner = "litl";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-g8bYGJ6Kw6y3BUnuoP1IAye5CL0geH5l7pTb3xxq7jI=";
21   };
23   nativeBuildInputs = [ poetry-core ];
25   nativeCheckInputs = [
26     pytest-asyncio
27     pytestCheckHook
28     responses
29   ];
31   pythonImportsCheck = [ "backoff" ];
33   meta = with lib; {
34     description = "Function decoration for backoff and retry";
35     homepage = "https://github.com/litl/backoff";
36     license = licenses.mit;
37     maintainers = with maintainers; [ chkno ];
38   };