python312Packages.cssselect2: refactor

This commit is contained in:
Fabian Affolter
2024-05-20 09:35:14 +02:00
parent 27851edc9d
commit 2656955ebe
@@ -1,17 +1,18 @@
{ lib
, buildPythonPackage
, flit-core
, pythonOlder
, fetchPypi
, tinycss2
, flit-core
, pytestCheckHook
, pythonOlder
, tinycss2
}:
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; [ ];
};
}