Files
MSYS2-packages/python-iniconfig/PKGBUILD
2022-07-27 17:58:40 +02:00

36 lines
885 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=python-iniconfig
pkgver=1.1.1
pkgrel=4
pkgdesc="brain-dead simple config-ini parsing"
url="https://github.com/pytest-dev/iniconfig"
license=('spdx:MIT')
arch=('any')
depends=('python')
makedepends=(
'python-setuptools'
'python-setuptools-scm'
'python-wheel'
'python-build'
'python-installer'
)
source=("$pkgbase-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz")
sha256sums=('a4489e91242e035cb58700d9a3c4bf49e0b106a85fefefe48025e333ea5ee49c')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
cd "$srcdir"/iniconfig-$pkgver
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd iniconfig-$pkgver
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}