Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / retry-decorator / default.nix
bloba2c984dfe4125204b48a62d3a2672c8c7bd289c6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "retry-decorator";
10   version = "1.1.1";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "pnpnpn";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-0dZq4YbPcH4ItyMnpF7B20YYLtzwniJClBK9gRndU1M=";
20   };
22   nativeCheckInputs = [
23     pytestCheckHook
24   ];
26   pythonImportsCheck = [
27     "retry_decorator"
28   ];
30   meta = with lib; {
31     description = "Decorator for retrying when exceptions occur";
32     homepage = "https://github.com/pnpnpn/retry-decorator";
33     changelog = "https://github.com/pnpnpn/retry-decorator/releases/tag/v${version}";
34     license = with licenses; [ asl20 ];
35   };