Files
nixpkgs/pkgs/development/python-modules/itemloaders/default.nix
T
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

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