summaryrefslogtreecommitdiff
path: root/www/py-granian/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-granian/Makefile')
-rw-r--r--www/py-granian/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/www/py-granian/Makefile b/www/py-granian/Makefile
new file mode 100644
index 000000000000..c39e5f0e4da8
--- /dev/null
+++ b/www/py-granian/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= granian
+PORTVERSION= 2.5.0
+PORTREVISION= 1
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+# Workaround to use both the PyPI tarball and the cargo crates.
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= grembo@FreeBSD.org
+COMMENT= Rust HTTP server for Python applications
+WWW= https://github.com/emmett-framework/granian
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}maturin>=1.7<2.0:devel/py-maturin@${PY_FLAVOR}
+
+USES= cargo python
+USE_PYTHON= autoplist concurrent pep517
+
+CARGO_BUILD= no
+CARGO_INSTALL= no
+
+.include <bsd.port.mk>