depot/third_party/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

48 lines
985 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
w3lib,
parsel,
jmespath,
itemadapter,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "itemloaders";
version = "1.3.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "scrapy";
repo = "itemloaders";
rev = "refs/tags/v${version}";
hash = "sha256-Hs3FodJAWZGeo+kMmcto5WW433RekwVuucaJl8TKc+0=";
};
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 = [ ];
};
}