From d716cad907e2f617c3c6c8506d1299569b2f2d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 21 Mar 2019 12:55:00 +0100 Subject: [PATCH] python.pkgs.retry: init at 0.9.2 --- .../python-modules/retry/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/retry/default.nix diff --git a/pkgs/development/python-modules/retry/default.nix b/pkgs/development/python-modules/retry/default.nix new file mode 100644 index 000000000000..a4743dcbfe46 --- /dev/null +++ b/pkgs/development/python-modules/retry/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pbr +, decorator +, py +, mock +, pytest +}: + +buildPythonPackage rec { + pname = "retry"; + version = "0.9.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "f8bfa8b99b69c4506d6f5bd3b0aabf77f98cdb17f3c9fc3f5ca820033336fba4"; + }; + + nativeBuildInputs = [ + pbr + ]; + + propagatedBuildInputs = [ + decorator + py + ]; + + checkInputs = [ + mock + pytest + ]; + + checkPhase = '' + pytest + ''; + + meta = with lib; { + description = "Easy to use retry decorator"; + homepage = https://github.com/invl/retry; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index df0b374689c0..20b77c87108c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4092,6 +4092,8 @@ in { restructuredtext_lint = callPackage ../development/python-modules/restructuredtext_lint { }; + retry = callPackage ../development/python-modules/retry { }; + robomachine = callPackage ../development/python-modules/robomachine { }; robotframework = callPackage ../development/python-modules/robotframework { };