testing/py3-django-drf-spectacular: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:54:43 -04:00
parent e45bc7c6c7
commit 04b4ed9090
2 changed files with 57 additions and 32 deletions

View file

@ -0,0 +1,57 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=drf-spectacular
pkgname="py3-django-$_pyname"
pkgver=0.26.4
pkgrel=0
arch="noarch"
pkgdesc="Sane and flexible OpenAPI 3 schema generation for Django REST framework"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-Clause"
depends="
py3-django-rest-framework
py3-jsonschema
py3-uritemplate
py3-yaml
py3-inflection
py3-django-oauth-toolkit
py3-jwcrypto
"
makedepends="
py3-setuptools
py3-gpep517
py3-wheel
py3-installer
"
checkdepends="
py3-pytest
py3-pytest-django
py3-pytest-cov
py3-flake8
py3-mypy
py3-isort
"
options="!check" # Failing test units
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
5ea90e78d9b159fee9d08b9809ed387ed5e2bfab46a877718c04829614ba46960bc813d7e6122b4302c2c11b2aac194c0b2a5202f5ff245062d861ca4d8f824b py3-django-drf-spectacular-0.26.4.tar.gz
"

View file

@ -1,32 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=drf-spectacular
pkgname="py3-django-$_pyname"
pkgver=0.26.1
pkgrel=0
arch="noarch"
pkgdesc="Sane and flexible OpenAPI 3 schema generation for Django REST framework"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-CLAUSE"
depends="py3-django-rest-framework py3-jsonschema py3-uritemplate py3-yaml py3-inflection py3-django-oauth-toolkit py3-jwcrypto"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-django py3-pytest-cov py3-flake8 py3-mypy py3-isort"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD/src" pytest || true
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
256031298bf3869c619e0f9b56f306e9f1f5ba8128ff4c8911dd30dd9c02196816c107c8f3e94783c55c9562597d7839f0a83fa1edd887dd79da948227296a10 py3-django-drf-spectacular-0.26.1.tar.gz
"