Add python-pyproject-hooks
This commit is contained in:
28
python-pyproject-hooks/PKGBUILD
Normal file
28
python-pyproject-hooks/PKGBUILD
Normal file
@@ -0,0 +1,28 @@
|
||||
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
|
||||
|
||||
_name=pyproject_hooks
|
||||
pkgname=python-pyproject-hooks
|
||||
pkgver=1.0.0
|
||||
pkgrel=1
|
||||
pkgdesc="A low-level library for calling build-backends in pyproject.toml-based project"
|
||||
arch=(any)
|
||||
url="https://github.com/pypa/pyproject-hooks"
|
||||
license=('spdx:MIT')
|
||||
depends=(python python-tomli)
|
||||
makedepends=(python-installer python-flit-core)
|
||||
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
|
||||
sha256sums=('f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5')
|
||||
|
||||
build() {
|
||||
cd $_name-$pkgver
|
||||
|
||||
python -m flit_core.wheel
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $_name-$pkgver
|
||||
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
|
||||
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
}
|
||||
Reference in New Issue
Block a user