1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/py3-gevent/APKBUILD
Natanael Copa 44fde94529 community/py3-gevent: upgrade to 21.1.2
The 1.5.0 version does not work at all with python 3.9
ref #12654
2021-07-09 12:19:47 +00:00

33 lines
1.1 KiB
Text

# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
# Contributor: Michael Zhou <zhoumichaely@gmail.com>
pkgname=py3-gevent
_pkgname=gevent
pkgver=21.1.2
pkgrel=0
pkgdesc="Python3 library for seamless coroutine-based concurrency"
options="!check" # Requires unpackaged 'objgraph'
url="http://gevent.org/"
arch="all"
license="MIT"
depends="py3-greenlet"
makedepends="py3-setuptools python3-dev c-ares-dev libevent-dev libev-dev file cython"
source="$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-gevent" # Backwards compatibility
provides="py-gevent=$pkgver-r$pkgrel" # Backwards compatibility
build() {
export GEVENTSETUP_EMBED=0
CYTHON=cython PYTHON=python3 python3 setup.py build
}
package() {
export GEVENTSETUP_EMBED=0
python3 setup.py install --prefix=/usr --root="$pkgdir"
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/*/tests
}
sha512sums="
7dae1dc766bc3cd36312c2b3d11b9ff77a8258b54a39f79357296d4c69d54ec60d6dc4cd8b4299dda26e0f8b93f670e061f3c50e13da33bea5a43d6497d14c4a py3-gevent-21.1.2.tar.gz
"