Files
MSYS2-packages/python-hatchling/PKGBUILD
Christoph Reiter 0566eff63a Remove makedepends on python-wheel everywhere
setuptools no longer needs it for building wheels since v70.1.0
2024-08-16 14:03:27 +02:00

43 lines
1.0 KiB
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=hatchling
pkgname=python-hatchling
pkgver=1.24.2
pkgrel=3
pkgdesc="A modern project, package, and virtual env manager (backend)"
arch=('any')
url="https://github.com/pypa/hatch"
msys2_references=(
"pypi:hatchling"
)
license=('spdx:MIT')
depends=(
'python'
'python-packaging'
'python-pathspec'
'python-pluggy'
'python-editables'
'python-trove-classifiers'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
)
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('41ddc27cdb25db9ef7b68bef075f829c84cb349aa1bff8240797d012510547b0')
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.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}