mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=py3-pytest-tornasync
|
|
_pkgver=0.5.0
|
|
pkgver=${_pkgver}_git20220715
|
|
_commitid=9f1bdeec3eb5816e0183f975ca65b5f6f29fbfbb
|
|
pkgrel=3
|
|
pkgdesc="Pytest plugin for testing tornado"
|
|
url="https://github.com/eukaryote/pytest-tornasync"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-tornado"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$_commitid.tar.gz::https://github.com/eukaryote/pytest-tornasync/archive/$_commitid.tar.gz"
|
|
builddir="$srcdir/pytest-tornasync-$_commitid"
|
|
options="!check" # tests are not functional
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages test-env
|
|
test-env/bin/python3 setup.py install
|
|
test-env/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
rm -f "$pkgdir"/usr/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
6da6b0b5495194835cfc43ef28188993fb91b75c389fb7f00c279cbb91259867e880eeb6e08bab0469ce07940ffff195f5b8e407a5128737af3eb46fe89e446f py3-pytest-tornasync-9f1bdeec3eb5816e0183f975ca65b5f6f29fbfbb.tar.gz
|
|
"
|