Revert "Merge pull request #117886 from risicle/ris-pygments-tests"

This is a pattern that should be avoided. So far hypothesis is the only
package using it if I am correct, let's not add more. Instead, we should solve the underlying issue.
That is, we build, install and test within one derivation. That we should split up.
Doing this more will only result in trouble.

This reverts commit 49e0bbb333ad0f55a8dd24d61c57e4ebde45db08, reversing
changes made to 2f2a55496a21b20ae7ad9b8b193c83b90ff8256a.
This commit is contained in:
Frederik Rietdijk 2021-04-03 17:45:02 +02:00
parent 827f7a3e43
commit dc2638276b
3 changed files with 6 additions and 14 deletions

View File

@ -3,7 +3,6 @@
, fetchPypi
, fetchpatch
, docutils
, pytestCheckHook
}:
buildPythonPackage rec {
@ -26,7 +25,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ docutils ];
checkInputs = [ pytestCheckHook ];
# Circular dependency with sphinx
doCheck = false;
meta = {
homepage = "https://pygments.org/";

View File

@ -2,8 +2,6 @@
, buildPythonPackage
, fetchPypi
, docutils
, pytestCheckHook
, doCheck ? true
}:
buildPythonPackage rec {
@ -17,8 +15,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ docutils ];
inherit doCheck;
checkInputs = [ pytestCheckHook ];
# Circular dependency with sphinx
doCheck = false;
meta = {
homepage = "https://pygments.org/";

View File

@ -6429,24 +6429,18 @@ in {
pytest_5 = callPackage
../development/python-modules/pytest/5.nix {
# hypothesis & pygments tests require pytest that causes dependency cycle
# hypothesis tests require pytest that causes dependency cycle
hypothesis = self.hypothesis.override {
doCheck = false;
};
pygments = self.pygments.override {
doCheck = false;
};
};
pytest_6 =
callPackage ../development/python-modules/pytest {
# hypothesis & pygments tests require pytest that causes dependency cycle
# hypothesis tests require pytest that causes dependency cycle
hypothesis = self.hypothesis.override {
doCheck = false;
};
pygments = self.pygments.override {
doCheck = false;
};
};
pytest_6_1 = self.pytest_6.overridePythonAttrs (oldAttrs: rec {