Skip to content

Commit 51a36a4

Browse files
misuzuJon
authored andcommitted
python3Packages.cssselect2: fix tests
1 parent b7a8008 commit 51a36a4

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

pkgs/development/python-modules/cssselect2/default.nix

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
, tinycss2
66
, pytest
77
, pytestrunner
8+
, pytestcov
9+
, pytest-flake8
10+
, pytest-isort
811
}:
912

1013
buildPythonPackage rec {
@@ -17,19 +20,9 @@ buildPythonPackage rec {
1720
sha256 = "5c2716f06b5de93f701d5755a9666f2ee22cbcd8b4da8adddfc30095ffea3abc";
1821
};
1922

20-
# We're not interested in code quality tests
21-
postPatch = ''
22-
substituteInPlace setup.cfg \
23-
--replace "pytest-cov" "" \
24-
--replace "pytest-flake8" "" \
25-
--replace "pytest-isort" "" \
26-
--replace "--flake8" "" \
27-
--replace "--isort" ""
28-
'';
29-
3023
propagatedBuildInputs = [ tinycss2 ];
3124

32-
checkInputs = [ pytest pytestrunner ];
25+
checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
3326

3427
meta = with lib; {
3528
description = "CSS selectors for Python ElementTree";

0 commit comments

Comments
 (0)