Christoph Reiter a0902f1e21 Use pypi PURLs instead of plain pypi names
This allows us to include a version and we already use PURL
for other things, so might as well remove the pypi special case.

Normalize the names, since that is required for PURLs.
2025-02-16 20:58:55 +01:00

31 lines
771 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_name=pyproject_hooks
pkgname=python-pyproject-hooks
pkgver=1.2.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"
msys2_references=(
"anitya: 320474"
'purl: pkg:pypi/pyproject-hooks'
)
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=('1e859bd5c40fae9448642dd871adf459e5e2084186e8d2c2a79a824c970da1f8')
build() {
cd $_name-$pkgver
python -m flit_core.wheel
}
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}