ilot/py3-django-pgactivity: new aport
This commit is contained in:
parent
464c44daf7
commit
243d0b3147
1 changed files with 39 additions and 0 deletions
39
ilot/py3-django-pgactivity/APKBUILD
Normal file
39
ilot/py3-django-pgactivity/APKBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-pgactivity
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-pgactivity
|
||||
pkgver=1.5.0
|
||||
pkgrel=0
|
||||
pkgdesc="View, filter, and kill Postgres queries."
|
||||
url="https://pypi.python.org/project/django-pgactivity"
|
||||
arch="noarch"
|
||||
license="BDS-3-Clause"
|
||||
depends="py3-django"
|
||||
checkdepends="py3-pytest py3-pytest-cov py3-pytest-django py3-pytest-mock py3-django-extensions py3-dj-database-url py3-psycopg2 py3-typing-extensions py3-django-dynamic-fixture"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel poetry"
|
||||
options="!check" # requires database setup
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/Opus10/django-pgactivity/archive/refs/tags/$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
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 -v
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
e052965e05878f75e790c30c4faeafec1900080f9d6119e20331c4418c3e9b6f2331b17b97902c41b538e88d6182466513674c33b146e2cbf566c56cbed20a81 py3-django-pgactivity-1.5.0.tar.gz
|
||||
"
|
Loading…
Add table
Reference in a new issue