41 lines
1007 B
Bash
41 lines
1007 B
Bash
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
|
|
|
|
_pyname=hatchling
|
|
pkgname=python-hatchling
|
|
pkgver=1.21.0
|
|
pkgrel=1
|
|
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=('5c086772357a50723b825fd5da5278ac7e3697cdf7797d07541a6c90b6ff754c')
|
|
|
|
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"
|
|
}
|