backports/py3-{webdavclient3, django-auth-ldap} #463

Merged
ayakael merged 2 commits from py3/add-lost-pkgs into edge 2024-04-16 15:29:32 +00:00
2 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,51 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-django-auth-ldap
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=django-auth-ldap
pkgver=4.8.0
pkgrel=1
pkgdesc="Django LDAP authentication backend"
url="https://pypi.python.org/project/django-auth-ldap"
# s390x | riscv64: test failure
arch="noarch !s390x !riscv64"
license="BSD"
# RuntimeError: slapd exited before opening port
options="!check"
depends="py3-django py3-ldap"
checkdepends="
py3-pytest
py3-pytest-django
py3-pytest-black
py3-isort
py3-flake8
openldap
openldap-back-mdb
openldap-clients
openldap-overlay-syncprov
"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://github.com/django-auth-ldap/django-auth-ldap/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 -Wa -b -m django test --settings tests.settings
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
559d6c0a556ccab2a0440866db9e1260b236e0bd4de92d07082660118b99886e7d362824cf0453de1f1d87ce1d5b5ab23d5181b8c970086d3a100ae32a29c482 py3-django-auth-ldap-4.8.0.tar.gz
"

View file

@ -0,0 +1,39 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-webdavclient3
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=webdav-client-python-3
pkgver=3.14.6
pkgrel=0
pkgdesc="WebDAV client"
url="https://pypi.python.org/project/webdavclient3"
arch="noarch"
license="MIT"
depends="py3-requests py3-lxml py3-dateutil"
checkdepends="py3-pytest"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://github.com/ezhov-evgeny/webdav-client-python-3/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
subpackages="$pkgname-pyc"
options="!check" # Test suite needs more work to be setup to work in aports env
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 "$builddir"/.dist/*.whl
.testenv/bin/python3 -m pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
4621dfe3fdde4a60a7580b37aaf2bf778ebae1615946e9ff5aedcf3d2d17b3e60511a4522f8023bd4756139c66027149a2afafbd07bf02d029d811bec172057d py3-webdavclient3-3.14.6.tar.gz
"