1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 03:53:41 +00:00

python3Packages.pygments: enable tests

this requires a similar trick as used by hypothesis to get around pytest
circular dependency
This commit is contained in:
Robert Scott 2021-03-27 15:50:34 +00:00
parent e73d77ae56
commit ac6e4a1287
2 changed files with 12 additions and 4 deletions

View file

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

View file

@ -6415,18 +6415,24 @@ in {
pytest_5 = callPackage
../development/python-modules/pytest/5.nix {
# hypothesis tests require pytest that causes dependency cycle
# hypothesis & pygments 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 tests require pytest that causes dependency cycle
# hypothesis & pygments 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 {