depot/third_party/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

48 lines
1,003 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
w3lib,
parsel,
jmespath,
itemadapter,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "itemloaders";
version = "1.3.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "scrapy";
repo = "itemloaders";
rev = "refs/tags/v${version}";
hash = "sha256-u0/WsvLn2YlYd/FuH26T9qEGRGscipnOQbV9uPv4F+M=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
w3lib
parsel
jmespath
itemadapter
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "itemloaders" ];
meta = with lib; {
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;
maintainers = with maintainers; [ ];
};
}