python311Packages.parsel: refactor
- clean-up
This commit is contained in:
@@ -9,13 +9,14 @@
|
||||
psutil,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
w3lib,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "parsel";
|
||||
version = "1.9.1";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@@ -24,12 +25,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-FOANwHcxyQMNtiDBlfyuiEtbSEjp+cUjxhGfcIzPqaw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace '"pytest-runner",' ""
|
||||
'';
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
cssselect
|
||||
jmespath
|
||||
lxml
|
||||
@@ -47,6 +45,7 @@ buildPythonPackage rec {
|
||||
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 ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user