summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/retry-decorator/default.nix
blob: 591ec8a257cef2e7965e3429be1b97386274aa89 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

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

  src = fetchFromGitHub {
    owner = "pnpnpn";
    repo = "retry-decorator";
    tag = "v${version}";
    hash = "sha256-0dZq4YbPcH4ItyMnpF7B20YYLtzwniJClBK9gRndU1M=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "retry_decorator" ];

  meta = {
    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 lib.licenses; [ asl20 ];
  };
}