Merge pull request #148553 from dotlambda/cssselect2-dependencies

python3Packages.cssselect2: remove superfluous dependencies

authored by Fabian Affolter and committed by GitHub ccb03c90 1083fd1d

+8 -6
+8 -6
pkgs/development/python-modules/cssselect2/default.nix
··· 3 3 , pythonOlder 4 4 , fetchPypi 5 5 , tinycss2 6 - , pytest 7 - , pytest-runner 8 - , pytest-cov 9 - , pytest-flake8 10 - , pytest-isort 6 + , pytestCheckHook 11 7 }: 12 8 13 9 buildPythonPackage rec { ··· 20 16 sha256 = "93fbb9af860e95dd40bf18c3b2b6ed99189a07c0f29ba76f9c5be71344664ec8"; 21 17 }; 22 18 19 + postPatch = '' 20 + sed -i '/^addopts/d' pyproject.toml 21 + ''; 22 + 23 23 propagatedBuildInputs = [ tinycss2 ]; 24 24 25 - checkInputs = [ pytest pytest-runner pytest-cov pytest-flake8 pytest-isort ]; 25 + checkInputs = [ pytestCheckHook ]; 26 + 27 + pythonImportsCheck = [ "cssselect2" ]; 26 28 27 29 meta = with lib; { 28 30 description = "CSS selectors for Python ElementTree";