From 6c10afe1301d8aae442ea431b0c656f3480c13f0 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 11:32:23 -0400 Subject: [PATCH] pythonPackages.webhelpers: refactor move to python-modules --- .../python-modules/webhelpers/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +----------- 2 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/webhelpers/default.nix diff --git a/pkgs/development/python-modules/webhelpers/default.nix b/pkgs/development/python-modules/webhelpers/default.nix new file mode 100644 index 000000000000..007f32f6cc5b --- /dev/null +++ b/pkgs/development/python-modules/webhelpers/default.nix @@ -0,0 +1,31 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, routes +, markupsafe +, webob +, nose +}: + +buildPythonPackage rec { + pname = "WebHelpers"; + version = "1.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "ea86f284e929366b77424ba9a89341f43ae8dee3cbeb8702f73bcf86058aa583"; + }; + + buildInputs = [ routes markupsafe webob nose ]; + + # TODO: failing tests https://bitbucket.org/bbangert/webhelpers/pull-request/1/fix-error-on-webob-123/diff + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://webhelpers.readthedocs.org/en/latest/; + description = "Web Helpers"; + license = licenses.free; + maintainers = with maintainers; [ garbas domenkozar ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 49481eafbb40..fd74e18e35f5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4268,25 +4268,7 @@ in { websocket_client = callPackage ../development/python-modules/websockets_client { }; - - webhelpers = buildPythonPackage rec { - name = "WebHelpers-1.3"; - - src = pkgs.fetchurl { - url = "mirror://pypi/W/WebHelpers/${name}.tar.gz"; - sha256 = "ea86f284e929366b77424ba9a89341f43ae8dee3cbeb8702f73bcf86058aa583"; - }; - - buildInputs = with self; [ routes markupsafe webob nose ]; - - # TODO: failing tests https://bitbucket.org/bbangert/webhelpers/pull-request/1/fix-error-on-webob-123/diff - doCheck = false; - - meta = { - maintainers = with maintainers; [ garbas domenkozar ]; - platforms = platforms.all; - }; - }; + webhelpers = callPackage ../development/python-modules/webhelpers { }; whichcraft = callPackage ../development/python-modules/whichcraft { };