2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cssselect,
|
|
|
|
fetchPypi,
|
|
|
|
jmespath,
|
|
|
|
lxml,
|
|
|
|
packaging,
|
|
|
|
psutil,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
w3lib,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parsel";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.9.1";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-FOANwHcxyQMNtiDBlfyuiEtbSEjp+cUjxhGfcIzPqaw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
2022-11-02 22:02:43 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [
|
2021-06-28 23:13:55 +00:00
|
|
|
cssselect
|
2023-04-29 16:46:19 +00:00
|
|
|
jmespath
|
2021-06-28 23:13:55 +00:00
|
|
|
lxml
|
2022-11-02 22:02:43 +00:00
|
|
|
packaging
|
2021-06-28 23:13:55 +00:00
|
|
|
w3lib
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-02 22:02:43 +00:00
|
|
|
psutil
|
2021-06-28 23:13:55 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "parsel" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Python library to extract data from HTML and XML using XPath and CSS selectors";
|
2022-11-02 22:02:43 +00:00
|
|
|
homepage = "https://github.com/scrapy/parsel";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/scrapy/parsel/blob/v${version}/NEWS";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|