depot/third_party/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

36 lines
734 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, w3lib
, parsel
, jmespath
, itemadapter
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "itemloaders";
version = "1.0.1";
disabled = isPy27;
# Tests not included in PyPI tarball
src = fetchFromGitHub {
owner = "scrapy";
repo = pname;
rev = "v${version}";
sha256 = "0frs0s876ddha844vhnhhiggyk3qbhhngrwkvgg3c0mrnn282f6k";
};
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 ];
};
}