summaryrefslogtreecommitdiff
path: root/www/py-uvicorn/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-uvicorn/Makefile')
-rw-r--r--www/py-uvicorn/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/www/py-uvicorn/Makefile b/www/py-uvicorn/Makefile
new file mode 100644
index 00000000000..a0655f03be2
--- /dev/null
+++ b/www/py-uvicorn/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2020/01/08 20:58:29 adam Exp $
+
+DISTNAME= uvicorn-0.11.1
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= www python
+MASTER_SITES= ${MASTER_SITE_PYPI:=u/uvicorn/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/encode/uvicorn
+COMMENT= The lightning-fast ASGI server
+LICENSE= modified-bsd
+
+DEPENDS+= ${PYPKGPREFIX}-click>=7.0:../../devel/py-click
+DEPENDS+= ${PYPKGPREFIX}-h11>=0.8:../../www/py-h11
+DEPENDS+= ${PYPKGPREFIX}-httptools>=0.0.13:../../www/py-httptools
+DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.14.0:../../devel/py-uvloop
+DEPENDS+= ${PYPKGPREFIX}-websockets>=8.0:../../www/py-websockets
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+post-install:
+ cd ${DESTDIR}${PREFIX}/bin && \
+ ${MV} uvicorn uvicorn-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"