# Maintainer: Patrycja Rosa pkgname=py3-pytoolconfig pkgver=1.2.5 pkgrel=2 pkgdesc="Python tool configuration" url="https://github.com/bageljrkhanofemus/pytoolconfig" arch="noarch" license="LGPL-3.0-or-later" depends=" py3-docutils py3-packaging py3-platformdirs py3-sphinx py3-tabulate python3 " makedepends="py3-gpep517 py3-pdm-backend py3-installer" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://github.com/bagel897/pytoolconfig/archive/v$pkgver/py3-pytoolconfig-$pkgver.tar.gz $pkgname-license.patch::https://github.com/bagel897/pytoolconfig/commit/9655177fa82329aa772bce34da25f1ee7f321dc9.patch pdm-backend.patch " builddir="$srcdir/pytoolconfig-$pkgver" build() { export PDM_BUILD_SCM_VERSION=$pkgver gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages test-env test-env/bin/python3 -m installer .dist/*.whl test-env/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 0a3e02e01e3b53cd4d085825ce197bf632d2e7c52e21297d76166a071712f2ae55a6c1aa7094f0ca3e001a1448b57f9f096e802a88a1c4304377559a05be1e27 py3-pytoolconfig-1.2.5.tar.gz 5e18a77b2bb33d757fc5a112924c45043b02e271f6b019833acb63761af4d89f2f286eeb6157e90eba78b4b0103e4762fb35229182b21cb976a82095b2fc6418 py3-pytoolconfig-license.patch 15d7fbd60c9572d6d6a357c22f8ac991fff33e1375bf6d04210802a2510822d9a5e269481d0be44fc61cf15aa188b29379198fcef6d833074ff0db12d65acd90 pdm-backend.patch "