Commit 2656955e authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.cssselect2: refactor

parent 27851edc
Loading
Loading
Loading
Loading
+17 −8
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, pytestCheckHook
, pythonOlder
, fetchPypi
, tinycss2
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "cssselect2";
  version = "0.7.0";
  format = "pyproject";
  disabled = pythonOlder "3.5";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
@@ -22,19 +23,27 @@ buildPythonPackage rec {
    sed -i '/^addopts/d' pyproject.toml
  '';

  nativeBuildInputs = [
  build-system = [
    flit-core
  ];

  propagatedBuildInputs = [ tinycss2 ];
  dependencies = [
    tinycss2
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "cssselect2" ];
  pythonImportsCheck = [
    "cssselect2"
  ];

  meta = with lib; {
    description = "CSS selectors for Python ElementTree";
    homepage = "https://github.com/Kozea/cssselect2";
    changelog = "https://github.com/Kozea/cssselect2/releases/tag/${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
  };
}