2020-08-20 17:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-06-28 23:13:55 +00:00
|
|
|
, pythonOlder
|
2020-08-20 17:08:02 +00:00
|
|
|
, w3lib
|
|
|
|
, parsel
|
|
|
|
, jmespath
|
|
|
|
, itemadapter
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "itemloaders";
|
2021-01-09 10:05:03 +00:00
|
|
|
version = "1.0.4";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
# Tests not included in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scrapy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-09 10:05:03 +00:00
|
|
|
sha256 = "0j68xgx2z63sc1nc9clw6744036vfbijdsghvjv6pk674d5lgyam";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ w3lib parsel jmespath itemadapter ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test are failing (AssertionError: Lists differ: ...)
|
|
|
|
"test_nested_css"
|
|
|
|
"test_nested_xpath"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "itemloaders" ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Base library for scrapy's ItemLoader";
|
|
|
|
homepage = "https://github.com/scrapy/itemloaders";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|