55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, w3lib
|
|
, parsel
|
|
, jmespath
|
|
, itemadapter
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "itemloaders";
|
|
version = "1.0.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scrapy";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ZzpWIJNDve6SvLDb+QUDVSXUfJabFuRwtyBeCUasUgY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
w3lib
|
|
parsel
|
|
jmespath
|
|
itemadapter
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test are failing (AssertionError: Lists differ: ...)
|
|
"test_nested_css"
|
|
"test_nested_xpath"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"itemloaders"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Base library for scrapy's ItemLoader";
|
|
homepage = "https://github.com/scrapy/itemloaders";
|
|
changelog = "https://github.com/scrapy/itemloaders/raw/v${version}/docs/release-notes.rst";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ marsam ];
|
|
};
|
|
}
|