30 lines
736 B
Bash
30 lines
736 B
Bash
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
|
|
|
|
_name=pyproject_hooks
|
|
pkgname=python-pyproject-hooks
|
|
pkgver=1.1.0
|
|
pkgrel=2
|
|
pkgdesc="A low-level library for calling build-backends in pyproject.toml-based project"
|
|
arch=(any)
|
|
url="https://github.com/pypa/pyproject-hooks"
|
|
msys2_references=(
|
|
"anitya: 320474"
|
|
)
|
|
license=('spdx:MIT')
|
|
depends=(python)
|
|
makedepends=(python-installer python-flit-core)
|
|
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
|
|
sha256sums=('4b37730834edbd6bd37f26ece6b44802fb1c1ee2ece0e54ddff8bfc06db86965')
|
|
|
|
build() {
|
|
cd $_name-$pkgver
|
|
|
|
python -m flit_core.wheel
|
|
}
|
|
|
|
package() {
|
|
cd $_name-$pkgver
|
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
}
|