1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, w3lib
6, parsel
7, jmespath
8, itemadapter
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "itemloaders";
14 version = "1.0.4";
15 disabled = pythonOlder "3.6";
16
17 # Tests not included in PyPI tarball
18 src = fetchFromGitHub {
19 owner = "scrapy";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "0j68xgx2z63sc1nc9clw6744036vfbijdsghvjv6pk674d5lgyam";
23 };
24
25 propagatedBuildInputs = [ w3lib parsel jmespath itemadapter ];
26
27 checkInputs = [ pytestCheckHook ];
28
29 disabledTests = [
30 # Test are failing (AssertionError: Lists differ: ...)
31 "test_nested_css"
32 "test_nested_xpath"
33 ];
34
35 pythonImportsCheck = [ "itemloaders" ];
36
37 meta = with lib; {
38 description = "Base library for scrapy's ItemLoader";
39 homepage = "https://github.com/scrapy/itemloaders";
40 license = licenses.bsd3;
41 maintainers = [ maintainers.marsam ];
42 };
43}