Commit 8575fbc2 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.parsel: refactor

- clean-up
parent 83a28438
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -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 ];
  };