mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=py3-janus
|
|
pkgver=1.2.0
|
|
pkgrel=0
|
|
pkgdesc="Mixed sync-async queue to interoperate between asyncio tasks and classic threads"
|
|
url="https://github.com/aio-libs/janus/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-asyncio
|
|
py3-pytest-benchmark
|
|
py3-pytest-cov
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/j/janus/janus-$pkgver.tar.gz"
|
|
builddir="$srcdir/janus-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c6f64302b8e2b953666faff1f530b0266e12b05618ad6f6faea2a6c3abda349207e2eef34ce50eca6943ccd2c54733bb2364727569a2c564e58be99e9490a015 janus-1.2.0.tar.gz
|
|
"
|