python3Packages.pytest: 7.1.3 -> 7.2.0
https://github.com/pytest-dev/pytest/releases/tag/7.2.0
This commit is contained in:
parent
39f4004b0e
commit
6d9c724458
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
# propagates
|
# propagates
|
||||||
, attrs
|
, attrs
|
||||||
|
, exceptiongroup
|
||||||
, iniconfig
|
, iniconfig
|
||||||
, packaging
|
, packaging
|
||||||
, pluggy
|
, pluggy
|
||||||
@ -20,12 +21,12 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest";
|
pname = "pytest";
|
||||||
version = "7.1.3";
|
version = "7.2.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-TzZf7C3/nBFi+DTZ8YrxuhMGLbDHCL97lG+KXHYYDDk=";
|
hash = "sha256-xAFOtA4Q8R81WtTjwvssbG0ZGcc/O1pDPeRwggLK3lk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [
|
outputs = [
|
||||||
@ -44,6 +45,8 @@ buildPythonPackage rec {
|
|||||||
pluggy
|
pluggy
|
||||||
py
|
py
|
||||||
tomli
|
tomli
|
||||||
|
] ++ lib.optionals (pythonOlder "3.11") [
|
||||||
|
exceptiongroup
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -69,7 +72,7 @@ buildPythonPackage rec {
|
|||||||
# - files are not needed after tests are finished
|
# - files are not needed after tests are finished
|
||||||
pytestRemoveBytecodePhase () {
|
pytestRemoveBytecodePhase () {
|
||||||
# suffix is defined at:
|
# suffix is defined at:
|
||||||
# https://github.com/pytest-dev/pytest/blob/7.1.3/src/_pytest/assertion/rewrite.py#L51-L53
|
# https://github.com/pytest-dev/pytest/blob/7.2.0/src/_pytest/assertion/rewrite.py#L51-L53
|
||||||
find $out -name "*-pytest-*.py[co]" -delete
|
find $out -name "*-pytest-*.py[co]" -delete
|
||||||
}
|
}
|
||||||
preDistPhases+=" pytestRemoveBytecodePhase"
|
preDistPhases+=" pytestRemoveBytecodePhase"
|
||||||
|
Loading…
Reference in New Issue
Block a user