From 025abc44cdc12dfefa1770f828177936198eddc4 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Sat, 27 Dec 2025 04:51:17 -0500 Subject: [PATCH] new blfs: dev-python/hatch-vcs-0.5.0 --- dev-python/hatch-vcs-0.5.0.PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 dev-python/hatch-vcs-0.5.0.PKGBUILD diff --git a/dev-python/hatch-vcs-0.5.0.PKGBUILD b/dev-python/hatch-vcs-0.5.0.PKGBUILD new file mode 100644 index 0000000..4da4f7f --- /dev/null +++ b/dev-python/hatch-vcs-0.5.0.PKGBUILD @@ -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/ +} +