Merge pull request #148553 from dotlambda/cssselect2-dependencies

python3Packages.cssselect2: remove superfluous dependencies
This commit is contained in:
Fabian Affolter 2021-12-04 12:12:11 +01:00 committed by GitHub
commit ccb03c908b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";