1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "retry-decorator";
11 version = "1.1.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "pnpnpn";
18 repo = "retry-decorator";
19 tag = "v${version}";
20 hash = "sha256-0dZq4YbPcH4ItyMnpF7B20YYLtzwniJClBK9gRndU1M=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "retry_decorator" ];
26
27 meta = with lib; {
28 description = "Decorator for retrying when exceptions occur";
29 homepage = "https://github.com/pnpnpn/retry-decorator";
30 changelog = "https://github.com/pnpnpn/retry-decorator/releases/tag/v${version}";
31 license = with licenses; [ asl20 ];
32 };
33}