2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 16:27:07 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, cssselect
|
2021-02-22 22:31:40 +00:00
|
|
|
, fetchPypi
|
2018-10-26 16:27:07 +01:00
|
|
|
, lxml
|
2021-02-22 22:31:40 +00:00
|
|
|
, pythonOlder
|
2018-10-26 16:27:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyquery";
|
2021-02-22 22:31:40 +00:00
|
|
|
version = "1.4.3";
|
|
|
|
disabled = pythonOlder "3.5";
|
2018-10-26 16:27:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
|
|
|
sha256 = "00p6f1dfma65192hc72dxd506491lsq3g5wgxqafi1xpg2w1xia6";
|
|
|
|
};
|
|
|
|
|
2021-02-22 22:31:40 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cssselect
|
|
|
|
lxml
|
|
|
|
];
|
2018-10-26 16:27:07 +01:00
|
|
|
|
|
|
|
# circular dependency on webtest
|
|
|
|
doCheck = false;
|
2021-02-22 22:31:40 +00:00
|
|
|
pythonImportsCheck = [ "pyquery" ];
|
2018-10-26 16:27:07 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-02-22 22:31:40 +00:00
|
|
|
description = "A jquery-like library for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gawel/pyquery";
|
2021-02-22 22:31:40 +00:00
|
|
|
changelog = "https://github.com/gawel/pyquery/blob/${version}/CHANGES.rst";
|
2018-10-26 16:27:07 +01:00
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
}
|