blob: 69c80c1dcd0c28bfa920c08db6f7a61c8f8686d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{
lib,
buildPythonPackage,
cssselect,
fetchPypi,
lxml,
pytestCheckHook,
requests,
setuptools,
webob,
webtest,
}:
buildPythonPackage rec {
pname = "pyquery";
version = "2.0.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-AZS7JwaxLQN9sSxRko/p67NrctnnGVZdq6WmxZUyL68=";
};
build-system = [ setuptools ];
dependencies = [
cssselect
lxml
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "pyquery" ];
nativeCheckInputs = [
pytestCheckHook
requests
webob
(webtest.overridePythonAttrs (_: {
# circular dependency
doCheck = false;
}))
];
disabledTestPaths = [
# requires network
"tests/test_pyquery.py::TestWebScrappingEncoding::test_get"
];
disabledTests = [
# broken in libxml 2.14 update
# https://github.com/gawel/pyquery/issues/257
"test_val_for_textarea"
"test_replaceWith"
"test_replaceWith_with_function"
"test_get"
"test_post"
"test_session"
];
meta = {
description = "Jquery-like library for Python";
homepage = "https://github.com/gawel/pyquery";
changelog = "https://github.com/gawel/pyquery/blob/${version}/CHANGES.rst";
license = lib.licenses.bsd3;
};
}
|