ilot/py3-django-pglock: new aport
This commit is contained in:
parent
a364ba266d
commit
d70a1db2fd
1 changed files with 40 additions and 0 deletions
40
ilot/py3-django-pglock/APKBUILD
Normal file
40
ilot/py3-django-pglock/APKBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-pglock
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-pglock
|
||||
pkgver=1.6.2
|
||||
pkgrel=0
|
||||
pkgdesc="Postgres advisory locks, table locks, and blocking lock management."
|
||||
url="https://pypi.python.org/project/django-pglock"
|
||||
arch="noarch"
|
||||
license="BDS-3-Clause"
|
||||
depends="py3-django py3-django-pgactivity"
|
||||
# missing py3-pytest-reraise py3-pytest-dotenv
|
||||
checkdepends="py3-pytest py3-pytest-cov py3-pytest-django py3-pytest-mock py3-django-extensions py3-django-dynamic-fixture"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel poetry"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/Opus10/django-pglock/archive/refs/tags/$pkgver.tar.gz"
|
||||
options="!check" # requires test database
|
||||
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="
|
||||
f87914934c72686d38c175d9a617b96ded332d3ad2caa5e1d5f1dc9cd0e3444a50bf29d66b47162221fd9cd12a27056c8d3cad3154f4a09f69b3fd92becb896f py3-django-pglock-1.6.2.tar.gz
|
||||
"
|
Loading…
Add table
Reference in a new issue