summary refs log tree commit diff
path: root/pkgs/development/python-modules/retry_decorator/default.nix
blob: 2a90adbd80585efddc9b2cca4db2f2733cbabd49 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "retry-decorator";
  version = "1.1.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "pnpnpn";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-0dZq4YbPcH4ItyMnpF7B20YYLtzwniJClBK9gRndU1M=";
  };

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "retry_decorator"
  ];

  meta = with lib; {
    description = "Decorator for retrying when exceptions occur";
    homepage = "https://github.com/pnpnpn/retry-decorator";
    changelog = "https://github.com/pnpnpn/retry-decorator/releases/tag/v${version}";
    license = with licenses; [ asl20 ];
  };
}