new bblfs: dev-python/pyproject-metadata-0.10.0
This commit is contained in:
39
dev-python/pyproject-metadata-0.10.0.PKGBUILD
Normal file
39
dev-python/pyproject-metadata-0.10.0.PKGBUILD
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
pkgname=pyproject-metadata
|
||||||
|
pkgver=0.10.0
|
||||||
|
pkgdesc='PEP 621 metadata parsing'
|
||||||
|
arch=(any)
|
||||||
|
homepage='https://github.com/pypa/python-pyproject-metadata'
|
||||||
|
license=(MIT)
|
||||||
|
depends=(
|
||||||
|
python
|
||||||
|
python-packaging
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
python-build
|
||||||
|
python-installer
|
||||||
|
python-flit-core
|
||||||
|
)
|
||||||
|
checkdepends=(python-pytest)
|
||||||
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||||
|
urls=("$homepage/archive/${pkgver}/${sources[0]}")
|
||||||
|
md5sums=("b1f885a760bb0de1de64c19018f34315")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_build() {
|
||||||
|
python -m build --wheel --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
src_check() {
|
||||||
|
pytest -v
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
|
||||||
|
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:ft=sh syn=sh et sw=2:
|
||||||
Reference in New Issue
Block a user