2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, cssselect
|
2021-02-24 18:30:23 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, lxml
|
2021-02-24 18:30:23 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyquery";
|
2021-02-24 18:30:23 +00:00
|
|
|
version = "1.4.3";
|
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
|
|
|
sha256 = "00p6f1dfma65192hc72dxd506491lsq3g5wgxqafi1xpg2w1xia6";
|
|
|
|
};
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cssselect
|
|
|
|
lxml
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# circular dependency on webtest
|
|
|
|
doCheck = false;
|
2021-02-24 18:30:23 +00:00
|
|
|
pythonImportsCheck = [ "pyquery" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-02-24 18:30:23 +00:00
|
|
|
description = "A jquery-like library for Python";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/gawel/pyquery";
|
2021-02-24 18:30:23 +00:00
|
|
|
changelog = "https://github.com/gawel/pyquery/blob/${version}/CHANGES.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
}
|