1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pbr,
6 decorator,
7 py,
8 mock,
9 pytest,
10}:
11
12buildPythonPackage rec {
13 pname = "retry";
14 version = "0.9.2";
15 format = "setuptools";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "f8bfa8b99b69c4506d6f5bd3b0aabf77f98cdb17f3c9fc3f5ca820033336fba4";
20 };
21
22 nativeBuildInputs = [ pbr ];
23
24 propagatedBuildInputs = [
25 decorator
26 py
27 ];
28
29 nativeCheckInputs = [
30 mock
31 pytest
32 ];
33
34 checkPhase = ''
35 pytest
36 '';
37
38 meta = with lib; {
39 description = "Easy to use retry decorator";
40 homepage = "https://github.com/invl/retry";
41 license = licenses.asl20;
42 };
43}