summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/retry2/default.nix
blob: f33efd6e41728df365a6afb924a0266ab2fce9bc (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
31
32
33
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  decorator,
  fetchFromGitHub,
  pbr,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "retry2";
  version = "0.9.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "eSAMTrade";
    repo = "retry";
    tag = version;
    hash = "sha256-RxOEekkmMRl2OQW2scFWbMQiFXcH0sbd+k9R8uul0uY=";
  };

  env.PBR_VERSION = version;

  build-system = [ pbr ];

  dependencies = [ decorator ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "retry" ];

  meta = {
    description = "Retry decorator";
    homepage = "https://github.com/eSAMTrade/retry";
    changelog = "https://github.com/eSAMTrade/retry/blob/${src.rev}/ChangeLog";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
}