From d6a9aca44f89576116e73f3b5dca51a1f4460c44 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 11:27:07 -0400 Subject: [PATCH] pythonPackages.pyquery: refactor move to python-modules --- .../python-modules/pyquery/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 14 +-------- 2 files changed, 31 insertions(+), 13 deletions(-) create mode 100644 pkgs/development/python-modules/pyquery/default.nix diff --git a/pkgs/development/python-modules/pyquery/default.nix b/pkgs/development/python-modules/pyquery/default.nix new file mode 100644 index 00000000000..70f144b6258 --- /dev/null +++ b/pkgs/development/python-modules/pyquery/default.nix @@ -0,0 +1,30 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, cssselect +, lxml +, webob +}: + +buildPythonPackage rec { + pname = "pyquery"; + version = "1.2.9"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "00p6f1dfma65192hc72dxd506491lsq3g5wgxqafi1xpg2w1xia6"; + }; + + propagatedBuildInputs = [ cssselect lxml webob ]; + + # circular dependency on webtest + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/gawel/pyquery; + description = "A jquery-like library for python"; + license = licenses.bsd0; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 22be84dc8cd..1509b812a78 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3475,19 +3475,7 @@ in { pyopenssl = callPackage ../development/python-modules/pyopenssl { }; - pyquery = buildPythonPackage rec { - name = "pyquery-${version}"; - version = "1.2.9"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyquery/${name}.zip"; - sha256 = "00p6f1dfma65192hc72dxd506491lsq3g5wgxqafi1xpg2w1xia6"; - }; - - propagatedBuildInputs = with self; [ cssselect lxml webob ]; - # circular dependency on webtest - doCheck = false; - }; + pyquery = callPackage ../development/python-modules/pyquery { }; pyreport = buildPythonPackage (rec { name = "pyreport-0.3.4c";