pythonPackages.pyquery: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 11:27:07 -04:00 committed by Frederik Rietdijk
parent 1a773a84fc
commit d6a9aca44f
2 changed files with 31 additions and 13 deletions

View File

@ -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;
};
}

View File

@ -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";