depot/third_party/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

48 lines
985 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 = [ ];
};
}