Skip to content

Commit

Permalink
python3Packages.pytest: 7.1.3 -> 7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jan 5, 2023
1 parent 39f4004 commit 6d9c724
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/development/python-modules/pytest/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# propagates
, attrs
, exceptiongroup
, iniconfig
, packaging
, pluggy
Expand All @@ -20,12 +21,12 @@

buildPythonPackage rec {
pname = "pytest";
version = "7.1.3";
version = "7.2.0";
format = "pyproject";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-TzZf7C3/nBFi+DTZ8YrxuhMGLbDHCL97lG+KXHYYDDk=";
hash = "sha256-xAFOtA4Q8R81WtTjwvssbG0ZGcc/O1pDPeRwggLK3lk=";
};

outputs = [
Expand All @@ -44,6 +45,8 @@ buildPythonPackage rec {
pluggy
py
tomli
] ++ lib.optionals (pythonOlder "3.11") [
exceptiongroup
];

postInstall = ''
Expand All @@ -69,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.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
}
preDistPhases+=" pytestRemoveBytecodePhase"
Expand Down

0 comments on commit 6d9c724

Please sign in to comment.