overrides: fix pytest-django wheel build

This commit is contained in:
Mel Bourgeois 2024-05-03 13:59:32 -05:00 committed by Phillip Cloud
parent 013b9da23d
commit f12241311f
No known key found for this signature in database
GPG key ID: D908212070FD785E

View file

@ -2803,8 +2803,11 @@ lib.composeManyExtensions [
pytest-django = prev.pytest-django.overridePythonAttrs ( pytest-django = prev.pytest-django.overridePythonAttrs (
_old: { _old: {
postPatch = '' postPatch = ''
substituteInPlace setup.py --replace "'pytest>=3.6'," "" # sometimes setup.py doesn't exist
substituteInPlace setup.py --replace "'pytest>=3.6'" "" if [ -f setup.py ]; then
substituteInPlace setup.py --replace "'pytest>=3.6'," ""
substituteInPlace setup.py --replace "'pytest>=3.6'" ""
fi
''; '';
} }
); );