mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
python310Packages.pyquery: 1.4.3 -> 2.0.0
https://github.com/gawel/pyquery/blob/2.0.0/CHANGES.rst
This commit is contained in:
parent
6c95eb5e80
commit
7a8db96d4f
@ -3,18 +3,23 @@
|
||||
, cssselect
|
||||
, fetchPypi
|
||||
, lxml
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, webob
|
||||
, webtest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyquery";
|
||||
version = "1.4.3";
|
||||
disabled = pythonOlder "3.5";
|
||||
version = "2.0.0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "00p6f1dfma65192hc72dxd506491lsq3g5wgxqafi1xpg2w1xia6";
|
||||
hash = "sha256-lj6NTpAmL/bY3sBy6pcoXcN0ovacrXd29AgqvPah2K4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -22,10 +27,23 @@ buildPythonPackage rec {
|
||||
lxml
|
||||
];
|
||||
|
||||
# circular dependency on webtest
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pyquery" ];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
requests
|
||||
webob
|
||||
(webtest.overridePythonAttrs (_: {
|
||||
# circular dependency
|
||||
doCheck = false;
|
||||
}))
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# requires network
|
||||
"--deselect=tests/test_pyquery.py::TestWebScrappingEncoding::test_get"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A jquery-like library for Python";
|
||||
homepage = "https://github.com/gawel/pyquery";
|
||||
|
Loading…
Reference in New Issue
Block a user