summaryrefslogtreecommitdiff
path: root/devel/py-fastuuid/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-fastuuid/Makefile')
-rw-r--r--devel/py-fastuuid/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/devel/py-fastuuid/Makefile b/devel/py-fastuuid/Makefile
new file mode 100644
index 000000000000..47934234b9bd
--- /dev/null
+++ b/devel/py-fastuuid/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= fastuuid
+DISTVERSION= 0.12.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= tagattie@FreeBSD.org
+COMMENT= Library providing CPython bindings to Rust's UUID library #'
+WWW= https://github.com/fastuuid/fastuuid
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}maturin>=1.0<2.0:devel/py-maturin@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-benchmark>0:devel/py-pytest-benchmark@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}uuid7>0:devel/py-uuid7@${PY_FLAVOR}
+
+USES= cargo python
+USE_PYTHON= autoplist pep517 pytest
+
+CARGO_BUILD= no
+CARGO_INSTALL= no
+CARGO_TEST= no
+
+MAKE_ENV= ${CARGO_ENV}
+TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/fastuuid/*.so
+
+.include <bsd.port.mk>