freebsd-ports/math/py-pynauty/Makefile
2023-07-26 17:45:06 -07:00

30 lines
706 B
Makefile

PORTNAME= pynauty
DISTVERSION= 2.8.6
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Isomorphism testing and automorphisms of graphs
WWW= https://github.com/pdobsan/pynauty
LICENSE= GPLv3
BUILD_DEPENDS= gmake:devel/gmake
USES= python shebangfix
USE_PYTHON= distutils autoplist pytest
SHEBANG_FILES= src/pynauty/tests/test_minimal.py
BINARY_ALIAS= make=${GMAKE} python3=${PYTHON_CMD}
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pynauty/nautywrap*.so
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest
.include <bsd.port.mk>