python311Packages.itemloaders: refactor

This commit is contained in:
Mario Rodas 2024-04-18 14:24:00 +00:00
parent 2cdb1a4bc0
commit 269218ecff
1 changed files with 9 additions and 10 deletions

View File

@ -2,6 +2,7 @@
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, w3lib
, parsel
, jmespath
@ -12,17 +13,21 @@
buildPythonPackage rec {
pname = "itemloaders";
version = "1.2.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "scrapy";
repo = pname;
repo = "itemloaders";
rev = "refs/tags/v${version}";
hash = "sha256-DatHJnAIomVoN/GrDzM2fNnFHcXqo6zs3ucKCOCf9DU=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
w3lib
parsel
@ -34,18 +39,12 @@ buildPythonPackage rec {
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";
description = "Library to populate items using XPath and CSS with a convenient API";
homepage = "https://github.com/scrapy/itemloaders";
changelog = "https://github.com/scrapy/itemloaders/raw/v${version}/docs/release-notes.rst";
license = licenses.bsd3;