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";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "1.1.0";
|
2022-09-09 14:08:57 +00:00
|
|
|
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}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-jwxxKfr/SI1yfjSQbYqggWxBwusBZNYySHwZXHftgFs=";
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|