mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
|
pkgname=py3-graphql-core
|
|
pkgver=3.2.6
|
|
pkgrel=0
|
|
pkgdesc="GraphQL implementation in Python"
|
|
url="https://github.com/graphql-python/graphql-core"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-poetry-core"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-asyncio
|
|
py3-pytest-benchmark
|
|
py3-pytest-describe
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/graphql-python/graphql-core/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/graphql-core-$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 \
|
|
--ignore=tests/benchmarks/
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
7081dc75928f080480dc88668ea104bbbb639d07da2d16c8435ee476139c5965881c22eb2e1617572c5da89b8ef1fd56dd69d1a9c21902a8812d2bc37427222a py3-graphql-core-3.2.6.tar.gz
|
|
"
|