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 commit49e0bbb333
, reversing changes made to2f2a55496a
.
This commit is contained in:
parent
827f7a3e43
commit
dc2638276b
3 changed files with 6 additions and 14 deletions
|
@ -3,7 +3,6 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, docutils
|
, docutils
|
||||||
, pytestCheckHook
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -26,7 +25,8 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ docutils ];
|
propagatedBuildInputs = [ docutils ];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook ];
|
# Circular dependency with sphinx
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://pygments.org/";
|
homepage = "https://pygments.org/";
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, docutils
|
, docutils
|
||||||
, pytestCheckHook
|
|
||||||
, doCheck ? true
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -17,8 +15,8 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ docutils ];
|
propagatedBuildInputs = [ docutils ];
|
||||||
|
|
||||||
inherit doCheck;
|
# Circular dependency with sphinx
|
||||||
checkInputs = [ pytestCheckHook ];
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://pygments.org/";
|
homepage = "https://pygments.org/";
|
||||||
|
|
|
@ -6429,24 +6429,18 @@ in {
|
||||||
|
|
||||||
pytest_5 = callPackage
|
pytest_5 = callPackage
|
||||||
../development/python-modules/pytest/5.nix {
|
../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 {
|
hypothesis = self.hypothesis.override {
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
};
|
};
|
||||||
pygments = self.pygments.override {
|
|
||||||
doCheck = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pytest_6 =
|
pytest_6 =
|
||||||
callPackage ../development/python-modules/pytest {
|
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 {
|
hypothesis = self.hypothesis.override {
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
};
|
};
|
||||||
pygments = self.pygments.override {
|
|
||||||
doCheck = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pytest_6_1 = self.pytest_6.overridePythonAttrs (oldAttrs: rec {
|
pytest_6_1 = self.pytest_6.overridePythonAttrs (oldAttrs: rec {
|
||||||
|
|
Loading…
Reference in a new issue