aports/main/py3-iniconfig/APKBUILD
2025-03-23 12:05:39 +00:00

53 lines
1.5 KiB
Text

# Contributor: mio <miyopan@e.email>
# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-iniconfig
_pyname=iniconfig
pkgver=2.1.0
pkgrel=0
pkgdesc="brain-dead simple config-ini parsing"
url="https://github.com/pytest-dev/iniconfig"
arch="noarch"
license="MIT"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
py3-py
py3-hatch-vcs
py3-hatchling
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/i/$_pyname/$_pyname-$pkgver.tar.gz
https://github.com/pytest-dev/$_pyname/raw/v$pkgver/testing/test_iniconfig.py
unittest_tests.patch
"
builddir="$srcdir/$_pyname-$pkgver"
prepare() {
cp "$srcdir"/test_iniconfig.py "$builddir"/test_iniconfig.py
default_prepare
}
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 unittest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
cea812d9b91b77eddbcf4e24b7aa60f8dc35d2c18bed783b8ad4864fc8caa0ec7aa070cb52c66f151f092d700637583dce6f541258dc6906144845e5a6321b6a iniconfig-2.1.0.tar.gz
3c0023cce2d7c37ae7e8086ab35a68d1b482502f241ed54de46830e09a4692cc548906f4ff70a638d03f5e0a5e06c079b6ef83a8398880ecf510b9db2e1d68a6 test_iniconfig.py
c0c1344e284745f39fd27b053cab81a9f34d7a94583e66e696060968b00b089bf05bdbff3f5e03cd2168387a6511a5453eed586db4ab3256a660b2ccc6516920 unittest_tests.patch
"