python3Packages.cssselect2: fix tests

This commit is contained in:
misuzu 2020-06-23 18:44:12 +03:00 committed by Jon
parent b7a800827c
commit 51a36a4075

View File

@ -5,6 +5,9 @@
, tinycss2
, pytest
, pytestrunner
, pytestcov
, pytest-flake8
, pytest-isort
}:
buildPythonPackage rec {
@ -17,19 +20,9 @@ buildPythonPackage rec {
sha256 = "5c2716f06b5de93f701d5755a9666f2ee22cbcd8b4da8adddfc30095ffea3abc";
};
# We're not interested in code quality tests
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-cov" "" \
--replace "pytest-flake8" "" \
--replace "pytest-isort" "" \
--replace "--flake8" "" \
--replace "--isort" ""
'';
propagatedBuildInputs = [ tinycss2 ];
checkInputs = [ pytest pytestrunner ];
checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
meta = with lib; {
description = "CSS selectors for Python ElementTree";