Files
MSYS2-packages/python-hatchling/PKGBUILD
Christoph Reiter 549882e326 Remove python-tomli
all packages no longer require it in combination with Python 3.11+
2023-12-06 09:36:08 +01:00

41 lines
1007 B
Bash

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