python-hatchling: Update to 1.16.1

and add new dependencies
This commit is contained in:
Christoph Reiter
2023-05-19 10:40:25 +02:00
parent b8ff0ee785
commit 7f1a65dbe2
3 changed files with 75 additions and 3 deletions

View File

@@ -0,0 +1,36 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=trove-classifiers
pkgname=python-trove-classifiers
pkgver=2023.5.2
pkgrel=1
pkgdesc="Canonical source for classifiers on PyPI (pypi.org)"
arch=('any')
url="https://github.com/pypa/trove-classifiers"
license=('spdx:Apache-2.0')
depends=(
'python'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
'python-calver'
)
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('c46d6e40a9581599b16c712e0164fec3764872a4085c673c07559787caedb867')
build() {
cd "${_pyname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pyname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}