summaryrefslogtreecommitdiff
path: root/www/py-uvicorn/Makefile
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-01-08 20:58:29 +0000
committeradam <adam@pkgsrc.org>2020-01-08 20:58:29 +0000
commit2e36fe4d6179f7f9dde6a5d59bc12e24dd49441f (patch)
treef0712ccc72fb468301bd14c1296b0e48d9c1653e /www/py-uvicorn/Makefile
parent2c45b3aebf06ec6a8d2650d17fa173797ea001e9 (diff)
downloadpkgsrc-2e36fe4d6179f7f9dde6a5d59bc12e24dd49441f.tar.gz
py-uvicorn: added version 0.11.1
Uvicorn is a lightning-fast ASGI server implementation, using uvloop and httptools. Until recently Python has lacked a minimal low-level server/application interface for asyncio frameworks. The ASGI specification fills this gap, and means we're now able to start building a common set of tooling usable across all asyncio frameworks.
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"