python310Packages.pytest: 7.2.0 -> 7.2.1

https://github.com/pytest-dev/pytest/releases/tag/7.2.1
This commit is contained in:
Martin Weinelt 2023-02-26 12:50:09 +00:00
parent f9174cec15
commit 8b711e8557

View File

@ -21,12 +21,12 @@
buildPythonPackage rec {
pname = "pytest";
version = "7.2.0";
version = "7.2.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-xAFOtA4Q8R81WtTjwvssbG0ZGcc/O1pDPeRwggLK3lk=";
hash = "sha256-1F4JUvNyckGRi4/Q83b1/2swHMB3fG+aVWk1yS2KfUI=";
};
outputs = [
@ -72,7 +72,7 @@ buildPythonPackage rec {
# - files are not needed after tests are finished
pytestRemoveBytecodePhase () {
# suffix is defined at:
# https://github.com/pytest-dev/pytest/blob/7.2.0/src/_pytest/assertion/rewrite.py#L51-L53
# https://github.com/pytest-dev/pytest/blob/7.2.1/src/_pytest/assertion/rewrite.py#L51-L53
find $out -name "*-pytest-*.py[co]" -delete
}
preDistPhases+=" pytestRemoveBytecodePhase"