tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.parsel: fix build
Fabian Affolter
4 years ago
61a374ac
331a8203
+40
-11
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
parsel
default.nix
+40
-11
pkgs/development/python-modules/parsel/default.nix
reviewed
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
+
, cssselect
3
4
, fetchPypi
4
4
-
, pytest
5
5
-
, pytestrunner
6
5
, functools32
6
6
+
, isPy27
7
7
+
, lxml
8
8
+
, pytestCheckHook
7
9
, six
8
10
, w3lib
9
9
-
, lxml
10
10
-
, cssselect
11
11
-
, isPy27
12
11
}:
13
12
14
13
buildPythonPackage rec {
···
20
19
sha256 = "0yawf9r3r863lwxj0n89i7h3n8xjbsl5b7n6xg76r68scl5yzvvh";
21
20
};
22
21
23
23
-
checkInputs = [ pytest pytestrunner ];
24
24
-
propagatedBuildInputs = [ six w3lib lxml cssselect ] ++ lib.optionals isPy27 [ functools32 ];
22
22
+
propagatedBuildInputs = [
23
23
+
cssselect
24
24
+
lxml
25
25
+
six
26
26
+
w3lib
27
27
+
] ++ lib.optionals isPy27 [
28
28
+
functools32
29
29
+
];
25
30
26
26
-
checkPhase = ''
27
27
-
py.test
31
31
+
checkInputs = [
32
32
+
pytestCheckHook
33
33
+
];
34
34
+
35
35
+
postPatch = ''
36
36
+
substituteInPlace setup.py \
37
37
+
--replace "'pytest-runner'," ""
28
38
'';
29
39
40
40
+
disabledTests = [
41
41
+
# Test are out-dated and are failing (AssertionError: Lists differ: ...)
42
42
+
# https://github.com/scrapy/parsel/pull/174
43
43
+
"test_differences_parsing_xml_vs_html"
44
44
+
"test_nested_selectors"
45
45
+
"test_re"
46
46
+
"test_replacement_null_char_from_body"
47
47
+
"test_select_on_text_nodes"
48
48
+
"test_selector_get_alias"
49
49
+
"test_selector_getall_alias"
50
50
+
"test_selector_over_text"
51
51
+
"test_selectorlist_get_alias"
52
52
+
"test_selectorlist_getall_alias"
53
53
+
"test_slicing"
54
54
+
"test_text_pseudo_element"
55
55
+
];
56
56
+
57
57
+
pythonImportsCheck = [ "parsel" ];
58
58
+
30
59
meta = with lib; {
31
60
homepage = "https://github.com/scrapy/parsel";
32
32
-
description = "Parsel is a library to extract data from HTML and XML using XPath and CSS selectors";
61
61
+
description = "Python library to extract data from HTML and XML using XPath and CSS selectors";
33
62
license = licenses.bsd3;
63
63
+
maintainers = with maintainers; [ fab ];
34
64
};
35
35
-
36
65
}