diff --git a/dev-python/iniconfig-2.1.0.PKGBUILD b/dev-python/iniconfig-2.1.0.PKGBUILD new file mode 100644 index 0000000..c998cb8 --- /dev/null +++ b/dev-python/iniconfig-2.1.0.PKGBUILD @@ -0,0 +1,24 @@ +pkgname=iniconfig +pkgver=2.1.0 +pkgdesc="brain-dead simple config-ini parsing" +homepage="https://github.com/RonnyPfannschmidt/iniconfig" +license=('MIT') +arch=('any') +sources=("${pkgname/-/_}-${pkgver}.tar.gz") +urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}") +md5sums=("437ede5b20b0ab2e76ca08f02b5c49dd") + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 +} + +src_build() { + python -m build --wheel --no-isolation +} + +# check need pytest, but iniconfig is needed by pytest + +src_install() { + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}