2020-08-05 02:20:20 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, w3lib
|
|
|
|
, parsel
|
|
|
|
, jmespath
|
|
|
|
, itemadapter
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "itemloaders";
|
2020-10-11 05:20:00 +01:00
|
|
|
version = "1.0.3";
|
2020-08-05 02:20:20 +01:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
# Tests not included in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scrapy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-11 05:20:00 +01:00
|
|
|
sha256 = "1s8c2il7jyfixpb7h5zq0lf4s07pqwia4ycpf3slb8whcp0h8bfm";
|
2020-08-05 02:20:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ w3lib parsel jmespath itemadapter ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Base library for scrapy's ItemLoader";
|
|
|
|
homepage = "https://github.com/scrapy/itemloaders";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|