[arch-commits] Commit in python-gevent/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 21:44:58 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:44:58
  Author: felixonmars
Revision: 1058991

archrelease: copy trunk to community-staging-x86_64

Added:
  python-gevent/repos/community-staging-x86_64/
  python-gevent/repos/community-staging-x86_64/PKGBUILD
    (from rev 1058990, python-gevent/trunk/PKGBUILD)

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

Copied: python-gevent/repos/community-staging-x86_64/PKGBUILD (from rev 1058990, python-gevent/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-30 21:44:58 UTC (rev 1058991)
@@ -0,0 +1,43 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ralf Schmitt <ralf at systemexit.de>
+
+pkgname=python-gevent
+pkgver=21.8.0
+pkgrel=3
+arch=('x86_64')
+pkgdesc="Python network library that uses greenlet and libev for easy and scalable concurrency"
+license=("MIT")
+url="http://www.gevent.org/"
+depends=('c-ares' 'libev' 'python-greenlet' 'python-setuptools' 'python-zope-event' 'python-zope-interface')
+makedepends=('cython')
+checkdepends=('lsof' 'python-perf' 'python-objgraph' 'python-dnspython' 'python-requests')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/gevent/gevent/archive/$pkgver.tar.gz")
+sha512sums=('1ae31913d3a13a5f5080a33686af4031a311059d1bec8791deac87824cecc3825fd1a04ae06d6f52a2e20e82d20f39fc446795169c2e288740ea1981c532385e')
+
+export EMBED=0
+
+build() {
+  cd gevent-$pkgver
+
+  CYTHON=cython \
+  PYTHON=python \
+  python setup.py build
+}
+
+check() {
+  (
+    cd "$srcdir"/gevent-$pkgver
+    python -m venv "$srcdir/pyvenv" --system-site-packages
+    . "$srcdir/pyvenv/bin/activate"
+    export PYTHONPATH="$PYTHONPATH:/usr/lib/python3.6/site-packages"
+    python setup.py install
+    python -m gevent.tests
+  ) || echo "Tests failed"
+}
+
+package() {
+  cd gevent-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+  install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list