ports/devel/py-anytree/Makefile
Po-Chuan Hsieh e9f9830bd9
devel/py-anytree: Fix build with py-poetry-core 2.0.0+
- Bump PORTREVISION for package change

Approved by:	portmgr (blanket)
With hat:	python
2025-02-03 23:54:29 +08:00

30 lines
782 B
Makefile

PORTNAME= anytree
DISTVERSION= 2.12.1
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Powerful and Lightweight Python Tree Data Structure
WWW= https://github.com/c0fec0de/anytree/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
dot:graphics/graphviz
USES= python
USE_PYTHON= autoplist pep517
NO_ARCH= yes
# test_tree_png runs `dot` and returns "Error: Could not find/open font"
# exclude it for now
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= \
-k 'not test_tree_png'
.include <bsd.port.mk>