depot/third_party/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

54 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
];
nativeCheckInputs = [
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 ];
};
}