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
|
||||
, 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/";
|
||||
|
|
|
@ -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/";
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue