diff --git a/pkgs/development/python-modules/cssselect2/default.nix b/pkgs/development/python-modules/cssselect2/default.nix index 9b58da4fdb21..a281c8801c57 100644 --- a/pkgs/development/python-modules/cssselect2/default.nix +++ b/pkgs/development/python-modules/cssselect2/default.nix @@ -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; [ ]; }; }