From d112a3363a3c551f6abee9b080b4f9bc9588300e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 3 Dec 2021 22:14:34 -0800 Subject: [PATCH] python3Packages.cssselect2: remove superfluous dependencies --- .../python-modules/cssselect2/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/cssselect2/default.nix b/pkgs/development/python-modules/cssselect2/default.nix index 25bb35eab2d8..52c1bc4067fb 100644 --- a/pkgs/development/python-modules/cssselect2/default.nix +++ b/pkgs/development/python-modules/cssselect2/default.nix @@ -3,11 +3,7 @@ , pythonOlder , fetchPypi , tinycss2 -, pytest -, pytest-runner -, pytest-cov -, pytest-flake8 -, pytest-isort +, pytestCheckHook }: buildPythonPackage rec { @@ -20,9 +16,15 @@ buildPythonPackage rec { sha256 = "93fbb9af860e95dd40bf18c3b2b6ed99189a07c0f29ba76f9c5be71344664ec8"; }; + postPatch = '' + sed -i '/^addopts/d' pyproject.toml + ''; + propagatedBuildInputs = [ tinycss2 ]; - checkInputs = [ pytest pytest-runner pytest-cov pytest-flake8 pytest-isort ]; + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "cssselect2" ]; meta = with lib; { description = "CSS selectors for Python ElementTree";