mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
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.
(cherry picked from commit 34b58364e4)
This commit is contained in:
committed by
Maximilian Bosch
parent
5685f3bf61
commit
4dee67cb9b
@@ -1981,15 +1981,17 @@ in {
|
||||
|
||||
pyhepmc = callPackage ../development/python-modules/pyhepmc { };
|
||||
|
||||
pytest = if isPy3k then
|
||||
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 {
|
||||
# hypothesis tests require pytest that causes dependency cycle
|
||||
hypothesis = self.hypothesis.override { doCheck = false; };
|
||||
};
|
||||
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; };
|
||||
};
|
||||
|
||||
pytest_4 = callPackage ../development/python-modules/pytest/4.nix {
|
||||
# hypothesis tests require pytest that causes dependency cycle
|
||||
hypothesis = self.hypothesis.override { doCheck = false; };
|
||||
};
|
||||
|
||||
pytest-helpers-namespace = callPackage ../development/python-modules/pytest-helpers-namespace { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user