Switch from setuptools to PEP 517 build system - setup.py no longer present. - See <https://wiki.archlinux.org/title/Python_package_guidelines>. Further: - Remove the nature of a split package. - Annotate dependencies with minimum versions.
38 lines
913 B
Bash
38 lines
913 B
Bash
# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>
|
|
# Contributor: Einhard Leichtfuß <alguien@respiranto.de>
|
|
|
|
_name=matrix-synapse-ldap3
|
|
pkgname="python-${_name}"
|
|
pkgver=0.2.0
|
|
pkgrel=1
|
|
pkgdesc='An LDAP3 auth provider for Synapse'
|
|
license=('Apache')
|
|
arch=('any')
|
|
url="https://github.com/matrix-org/${_name}"
|
|
depends=(
|
|
'matrix-synapse'
|
|
'python>=3.7'
|
|
'python-twisted>=15.1.0'
|
|
'python-ldap3>=2.8'
|
|
'python-service-identity'
|
|
)
|
|
makedepends=(
|
|
'python-build'
|
|
'python-wheel'
|
|
'python-installer'
|
|
)
|
|
replaces=("python2-${_name}")
|
|
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
|
|
sha512sums=('ca142af1ae152ef6906fbef295d215626a72e164523f0ba67b14d4d5af9b06645684f384c255edfee927e8c79b24e3fee96b0257c049909eb9cf6fcb2f8b4720')
|
|
|
|
build()
|
|
{
|
|
cd "${_name}-${pkgver}"
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
package()
|
|
{
|
|
cd "${_name}-${pkgver}"
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
}
|