1{
2 lib,
3 buildPythonPackage,
4 decorator,
5 fetchFromGitHub,
6 pbr,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "retry2";
13 version = "0.9.5";
14 pyproject = true;
15
16 disabled = pythonOlder "3.10";
17
18 src = fetchFromGitHub {
19 owner = "eSAMTrade";
20 repo = "retry";
21 tag = version;
22 hash = "sha256-RxOEekkmMRl2OQW2scFWbMQiFXcH0sbd+k9R8uul0uY=";
23 };
24
25 env.PBR_VERSION = version;
26
27 build-system = [ pbr ];
28
29 dependencies = [ decorator ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "retry" ];
34
35 meta = {
36 description = "Retry decorator";
37 homepage = "https://github.com/eSAMTrade/retry";
38 changelog = "https://github.com/eSAMTrade/retry/blob/${src.rev}/ChangeLog";
39 license = lib.licenses.asl20;
40 maintainers = with lib.maintainers; [ fab ];
41 };
42}