depot/third_party/nixpkgs/pkgs/development/python-modules/parsel/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

52 lines
945 B
Nix

{
lib,
buildPythonPackage,
cssselect,
fetchPypi,
jmespath,
lxml,
packaging,
psutil,
pytestCheckHook,
pythonOlder,
setuptools,
w3lib,
}:
buildPythonPackage rec {
pname = "parsel";
version = "1.9.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-FOANwHcxyQMNtiDBlfyuiEtbSEjp+cUjxhGfcIzPqaw=";
};
build-system = [ setuptools ];
dependencies = [
cssselect
jmespath
lxml
packaging
w3lib
];
nativeCheckInputs = [
psutil
pytestCheckHook
];
pythonImportsCheck = [ "parsel" ];
meta = with lib; {
description = "Python library to extract data from HTML and XML using XPath and CSS selectors";
homepage = "https://github.com/scrapy/parsel";
changelog = "https://github.com/scrapy/parsel/blob/v${version}/NEWS";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}