pytest: Add pytest_4 as its own attribute

Many packages aren't yet updated to handle the incompatible changes of
pytest5 so we still need v4.
This commit is contained in:
Daniel Schaefer 2019-09-14 14:00:47 +02:00
parent 859dd21997
commit 34b58364e4

View File

@ -1991,12 +1991,14 @@ in {
pyhepmc = callPackage ../development/python-modules/pyhepmc { };
pytest = if isPy3k then
callPackage ../development/python-modules/pytest {
pytest = if isPy3k then self.pytest_5 else self.pytest_4;
pytest_5 = callPackage ../development/python-modules/pytest {
# hypothesis tests require pytest that causes dependency cycle
hypothesis = self.hypothesis.override { doCheck = false; };
}
else callPackage ../development/python-modules/pytest/2.nix {
};
pytest_4 = callPackage ../development/python-modules/pytest/4.nix {
# hypothesis tests require pytest that causes dependency cycle
hypothesis = self.hypothesis.override { doCheck = false; };
};