tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.pyquery: refactor, fix license
Martin Weinelt
8 months ago
d7ff9aa6
77c68ec6
+6
-12
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pyquery
default.nix
+6
-12
pkgs/development/python-modules/pyquery/default.nix
···
5
5
fetchPypi,
6
6
lxml,
7
7
pytestCheckHook,
8
8
-
pythonOlder,
9
8
requests,
9
9
+
setuptools,
10
10
webob,
11
11
webtest,
12
12
}:
···
14
14
buildPythonPackage rec {
15
15
pname = "pyquery";
16
16
version = "2.0.1";
17
17
-
disabled = pythonOlder "3.7";
18
18
-
19
19
-
format = "setuptools";
17
17
+
pyproject = true;
20
18
21
19
src = fetchPypi {
22
20
inherit pname version;
23
21
hash = "sha256-AZS7JwaxLQN9sSxRko/p67NrctnnGVZdq6WmxZUyL68=";
24
22
};
25
23
26
26
-
# https://github.com/gawel/pyquery/issues/248
27
27
-
postPatch = ''
28
28
-
substituteInPlace tests/test_pyquery.py \
29
29
-
--replace test_selector_html skip_test_selector_html
30
30
-
'';
24
24
+
build-system = [ setuptools ];
31
25
32
32
-
propagatedBuildInputs = [
26
26
+
dependencies = [
33
27
cssselect
34
28
lxml
35
29
];
···
38
32
39
33
pythonImportsCheck = [ "pyquery" ];
40
34
41
41
-
checkInputs = [
35
35
+
nativeCheckInputs = [
42
36
pytestCheckHook
43
37
requests
44
38
webob
···
68
62
description = "Jquery-like library for Python";
69
63
homepage = "https://github.com/gawel/pyquery";
70
64
changelog = "https://github.com/gawel/pyquery/blob/${version}/CHANGES.rst";
71
71
-
license = licenses.bsd0;
65
65
+
license = licenses.bsd3;
72
66
};
73
67
}