From c25ea93761666052b540871694b7fdf72173add0 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 11:54:19 -0400 Subject: [PATCH] pythonPAckages.recaptcha_client: refactor move to python-modules --- .../recaptcha_client/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------ 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/recaptcha_client/default.nix diff --git a/pkgs/development/python-modules/recaptcha_client/default.nix b/pkgs/development/python-modules/recaptcha_client/default.nix new file mode 100644 index 000000000000..09090540a5b0 --- /dev/null +++ b/pkgs/development/python-modules/recaptcha_client/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pythonAtLeast +}: + +buildPythonPackage rec { + pname = "recaptcha-client"; + version = "1.0.6"; + disabled = pythonAtLeast "3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "28c6853c1d13d365b7dc71a6b05e5ffb56471f70a850de318af50d3d7c0dea2f"; + }; + + meta = with stdenv.lib; { + description = "A CAPTCHA for Python using the reCAPTCHA service"; + homepage = http://recaptcha.net/; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index eb1d331f9932..5f9749d576ad 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3526,21 +3526,7 @@ in { radicale_infcloud = callPackage ../development/python-modules/radicale_infcloud {}; - recaptcha_client = buildPythonPackage rec { - name = "recaptcha-client-1.0.6"; - - src = pkgs.fetchurl { - url = "mirror://pypi/r/recaptcha-client/${name}.tar.gz"; - sha256 = "28c6853c1d13d365b7dc71a6b05e5ffb56471f70a850de318af50d3d7c0dea2f"; - }; - - disabled = isPy35 || isPy36; - - meta = { - description = "A CAPTCHA for Python using the reCAPTCHA service"; - homepage = http://recaptcha.net/; - }; - }; + recaptcha_client = callPackage ../development/python-modules/recaptcha_client { }; rbtools = buildPythonPackage rec { name = "rbtools-0.7.2";