testing/py3-django-extensions: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:54:48 -04:00
parent f913376230
commit d31e1cec52
2 changed files with 49 additions and 27 deletions

View file

@ -0,0 +1,49 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-django-extensions
_pyname="django-extensions"
pkgver=3.2.3
pkgrel=0
arch="noarch"
pkgdesc="A collection of custom extensions for the Django Framework"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="
python3
py3-django
py3-six
"
makedepends="
py3-setuptools
py3-wheel
py3-gpep517
py3-installer
"
checkdepends="
py3-pytest
py3-shortuuid
"
options="!check" # Missing shortuuid depend
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="
b4c575c200a9d0903db34038fd52877dfe2581d4b5c9f98ee0ef191bf4f2c615ba3cd11277a5b6621b4ccba4d3a27286fb3e08fac216d3ee48417583134e899f py3-django-extensions-3.2.3.tar.gz
"

View file

@ -1,27 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-django-extensions
_pyname="django-extensions"
pkgver=3.2.1
pkgrel=0
arch="noarch"
pkgdesc="A collection of custom extensions for the Django Framework"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends='python3 py3-django py3-six'
makedepends='py3-setuptools'
options="!check" # No testsuite
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
}
package() {
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
}
sha512sums="
570989844035d688684b524abc8a20b6043b7cd76fd14dde6b2efe7e32b295f8f3a39a8ecceaae7c86233a5e56b6a8d33381b8f7aa18f153c2d79d4b007d3e34 py3-django-extensions-3.2.1.tar.gz
"