mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
37 lines
734 B
Nix
37 lines
734 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy27
|
|
, w3lib
|
|
, parsel
|
|
, jmespath
|
|
, itemadapter
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "itemloaders";
|
|
version = "1.0.4";
|
|
|
|
disabled = isPy27;
|
|
|
|
# Tests not included in PyPI tarball
|
|
src = fetchFromGitHub {
|
|
owner = "scrapy";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0j68xgx2z63sc1nc9clw6744036vfbijdsghvjv6pk674d5lgyam";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|