Skip to content

Commit

Permalink
sysutils/ntfy: fix build with Python 3.11
Browse files Browse the repository at this point in the history
Obtained from here:
dschep/ntfy#262

PR:		275494
Approved by:	portmgr (blanket approval)
  • Loading branch information
mexicarne committed Jan 21, 2024
1 parent 1f508a8 commit 2c7013f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sysutils/ntfy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>0:devel/py-appdirs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ruamel.yaml>0:devel/py-ruamel.yaml@${PY_FLAVOR}

USES= python
USES= python:3.11
USE_GITHUB= yes
GH_ACCOUNT= dschep
USE_PYTHON= distutils noflavors autoplist

NO_ARCH= yes

post-patch:
# Fix build with Python 3.11
@${REINPLACE_CMD} -e 's|getargspec|getfullargspec|' \
${WRKSRC}/ntfy/__init__.py

.include <bsd.port.mk>

0 comments on commit 2c7013f

Please sign in to comment.