Date: Sunday, April 9, 2023 @ 04:03:30
  Author: felixonmars
Revision: 1443071

archrelease: copy trunk to community-staging-any

Added:
  python-engineio/repos/community-staging-any/
  python-engineio/repos/community-staging-any/PKGBUILD
    (from rev 1443070, python-engineio/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: python-engineio/repos/community-staging-any/PKGBUILD (from rev 1443070, 
python-engineio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 04:03:30 UTC (rev 1443071)
@@ -0,0 +1,45 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-engineio
+pkgver=4.3.4
+pkgrel=3
+pkgdesc='Python implementation of the Engine.IO realtime server'
+url='https://github.com/miguelgrinberg/python-engineio'
+arch=('any')
+license=('MIT')
+depends=('python' 'python-six' 'python-urllib3' 'python-websocket-client' 
'python-websockets' 'python-requests')
+optdepends=('python-eventlet: eventlet driver'
+            'python-aiohttp: aiohttp driver'
+            'python-tornado: tornado driver'
+            'python-gevent: gevent driver'
+            'python-gevent-websocket: gevent driver')
+makedepends=('python-setuptools' 'python-sphinx' 'python-six' 
'python-eventlet' 'python-aiohttp' 'python-tornado'
+             'python-urllib3' 'python-websocket-client' 'python-gevent' 
'python-gevent-websocket' 'python-websockets'
+             'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-runner')
+options=('!makeflags')
+source=(https://github.com/miguelgrinberg/python-engineio/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('427f224ae24d939d55316931cd087676741195d578415224de291f9871b535fdd02b835ac32a65d73be0428c8c4be0414faefca06a4964b1fe34e2ac91b02694')
+b2sums=('78488fb7deb54136a255b1027e52e1869e7d09b38769d3dd144b26146ac8db58091238c3f1cfa81d4c29af4d1bd8bb998559756053e53f6c7876c2866da31575')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  python -m build --wheel --no-isolation
+  make -C docs man text SPHINXBUILD=sphinx-build
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  PYTHONPATH=build/lib python setup.py test
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/text/*.txt -t 
"${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/man/python-engineio.1 
"${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to