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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.0.6";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scrapy";
|
|
|
|
repo = pname;
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-ZzpWIJNDve6SvLDb+QUDVSXUfJabFuRwtyBeCUasUgY=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
w3lib
|
|
|
|
parsel
|
|
|
|
jmespath
|
|
|
|
itemadapter
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test are failing (AssertionError: Lists differ: ...)
|
|
|
|
"test_nested_css"
|
|
|
|
"test_nested_xpath"
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"itemloaders"
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Base library for scrapy's ItemLoader";
|
|
|
|
homepage = "https://github.com/scrapy/itemloaders";
|
2022-09-09 14:08:57 +00:00
|
|
|
changelog = "https://github.com/scrapy/itemloaders/raw/v${version}/docs/release-notes.rst";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.bsd3;
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|