1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

textproc/py-sphinx: Fix build with Python 3.13+.

This commit is contained in:
Xin LI
2026-04-10 20:13:35 -07:00
parent db42cb71f2
commit 73f60a4ef3
+9 -2
View File
@@ -37,7 +37,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinxcontrib-applehelp>=0:textproc/py-sphin
${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}html5lib>=0:www/py-html5lib@${PY_FLAVOR}
USES= python:3.10-3.12 # uses imghdr module
USES= python:3.10+
USE_PYTHON= autoplist concurrent cython_test pep517 pytest
NO_ARCH= yes
@@ -51,4 +51,11 @@ PYTEST_BROKEN_TESTS= test_anchors_ignored \
# https://github.com/sphinx-doc/sphinx/issues/2395
EXTRACT_CMD= ${SETENV} LC_ALL=en_US.UTF-8 /usr/bin/bsdtar
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
# imghdr was removed from the standard library in Python 3.13
.if ${PYTHON_REL} >= 31300
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}standard-imghdr>=3.13.0:devel/py-standard-imghdr@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>