new blfs: dev-python/hatch-vcs-0.5.0

This commit is contained in:
2025-12-27 04:51:17 -05:00
parent 9087b46e38
commit 025abc44cd

View File

@@ -0,0 +1,25 @@
pkgname=hatch-vcs
pkgver=0.5.0
pkgdesc="Hatch plugin for versioning with your preferred VCS"
homepage="https://github.com/ofek/hatch-vcs"
license=('MIT')
arch=('any')
sources=("${pkgname/-/_}-${pkgver}.tar.gz")
urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}")
md5sums=("9a22a9f7203783e526959d34510a9672")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
python -m build --wheel --no-isolation
}
# check need pytest, but hatch-vcs is needed by pytest
src_install() {
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}