git » python-hatchling.git » main » tree

[main] / PKGBUILD

# Maintainer: Santiago Torres-Arias <santiago @ usualplace>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>

pkgname=python-hatchling
pkgver=1.27.0
pkgrel=1
pkgdesc="Extensible, standards compliant build backend used by Hatch"
arch=('any')
url="https://github.com/pypa/hatch/tree/master/backend"
license=('MIT')
groups=(python-build-backend)
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/hatchling-v$pkgver.tar.gz")
sha256sums=('c5d576a04bbc3940c71dc899da35a9cfe644044a6e4e70549f41d964d6331625')

build() {
  cd hatch-hatchling-v$pkgver
  python -m build --wheel --no-isolation backend
}

package() {
  cd hatch-hatchling-v$pkgver
  python -m installer --destdir="$pkgdir" backend/dist/*.whl
  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" backend/README.md
  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" backend/LICENSE.txt
}