Skip to content
Snippets Groups Projects
Commit 32752de9 authored by Hoang Nguyen's avatar Hoang Nguyen 🐢 Committed by Kevin Daudt
Browse files

community/py3-graphql-core: new aport

parent 4e5aed10
No related branches found
No related tags found
1 merge request!77073community/py3-gitlab: upgrade to 5.1.0
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
pkgname=py3-graphql-core
pkgver=3.2.5
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="
14c668049f034db445bf4c958896ee6cb2c6511a124cf081b11ab47dc31d584d22ae13e74596a5dad43146ef52a1b2ea42c865b22e7d88772fcd2c2378550eb1 py3-graphql-core-3.2.5.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment