about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/retry/default.nix
blob: e093f761f251d9e81970ad495ed23e2636267cbb (plain) (blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, fetchPypi
, pbr
, decorator
, py
, mock
, pytest
}:

buildPythonPackage rec {
  pname = "retry";
  version = "0.9.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "f8bfa8b99b69c4506d6f5bd3b0aabf77f98cdb17f3c9fc3f5ca820033336fba4";
  };

  nativeBuildInputs = [
    pbr
  ];

  propagatedBuildInputs = [
    decorator
    py
  ];

  nativeCheckInputs = [
    mock
    pytest
  ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Easy to use retry decorator";
    homepage = "https://github.com/invl/retry";
    license = licenses.asl20;
  };
}