community/py3-dotmap: switch to gpep517

This commit is contained in:
Iztok Fister Jr 2023-09-08 17:42:30 +00:00 committed by omni
parent a32cb2c3b0
commit bd24e0822e

View File

@ -3,20 +3,22 @@
pkgname=py3-dotmap
_pkgorig=dotmap
pkgver=1.3.30
pkgrel=2
pkgrel=3
pkgdesc="Dot access dictionary with dynamic hierarchy creation and ordered iteration"
url="https://github.com/drgrib/dotmap"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest-xdist"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/d/dotmap/dotmap-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
@ -24,7 +26,8 @@ check() {
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="