python-hatchling 1.22.4-1

This commit is contained in:
xhaa123 2024-11-04 11:32:38 +08:00
commit 734ad412a7

36
PKGBUILD Normal file
View File

@ -0,0 +1,36 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=python-hatchling
pkgver=1.22.4
pkgrel=1
pkgdesc="Extensible, standards compliant build backend used by Hatch"
arch=('x86_64')
url="https://github.com/pypa/hatch/tree/master/backend"
license=('MIT')
depends=(
'python'
'python-packaging'
'python-pathspec'
'python-pluggy'
'python-editables'
'python-trove-classifiers'
)
makedepends=('python-build' 'python-installer')
source=(https://github.com/pypa/hatch/archive/${pkgname#*-}-v${pkgver}/hatch-${pkgname#*-}-v${pkgver}.tar.gz)
sha256sums=(8af047e70167647f412c3237eaa305e2dc5ec62e4909e12e29cce28829fa6e9d)
build() {
cd hatch-${pkgname#*-}-v${pkgver}/backend
python3 -m build --wheel --no-isolation
}
package() {
cd hatch-${pkgname#*-}-v${pkgver}/backend
python3 -m installer --destdir="$pkgdir" dist/*.whl
}