Add python-hatchling and update python-iniconfig

iniconfig 2.0 uses hatchling as a build backend, so add
hatchling and all required dependencies
This commit is contained in:
Christoph Reiter
2023-02-12 19:06:00 +01:00
parent 5c7e853df2
commit c6632b74bf
5 changed files with 145 additions and 11 deletions

30
python-pathspec/PKGBUILD Normal file
View File

@@ -0,0 +1,30 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_name=pathspec
pkgname=python-pathspec
pkgver=0.11.0
pkgrel=1
pkgdesc='Utility library for gitignore style pattern matching of file paths'
arch=('any')
url=https://github.com/cpburnz/python-pathspec
license=('spdx: MPL-2.0')
depends=('python')
makedepends=(
'python-build'
'python-flit-core'
'python-installer'
'python-wheel'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('64d338d4e0914e91c1792321e6907b5a593f1ab1851de7fc269557a21b30ebbc')
build() {
cd "$_name-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}