mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
54 lines
1.4 KiB
Text
54 lines
1.4 KiB
Text
# Contributor: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-eventlet
|
|
pkgver=0.38.1
|
|
pkgrel=0
|
|
pkgdesc="Python library for seamless coroutine-based concurrency"
|
|
url="https://eventlet.net/"
|
|
# riscv: tests fails
|
|
arch="noarch !riscv64"
|
|
license="MIT"
|
|
depends="
|
|
py3-dnspython
|
|
py3-greenlet
|
|
py3-httplib2
|
|
py3-openssl
|
|
py3-psycopg2
|
|
py3-six
|
|
python3
|
|
"
|
|
makedepends="py3-hatchling py3-gpep517 py3-wheel py3-hatch-vcs"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir"/eventlet-$pkgver
|
|
|
|
# secfixes:
|
|
# 0.32.0-r0:
|
|
# - CVE-2021-21419
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
# deselected tests want to modify /etc/resolv.conf, for some reason
|
|
.testenv/bin/python3 -m pytest \
|
|
--deselect tests/greendns_test.py \
|
|
--deselect tests/socket_test.py::test_dns_methods_are_green
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c6f9694ac0dc00cfedb4770541b71cfc92ec6252b08ed0a42c0b8d3dd204f5e449e09c49c3ea148fe35b122803301b77ccf43a54ba2d06515f3a494f8b11d5f8 eventlet-0.38.1.tar.gz
|
|
"
|