26 lines
685 B
Plaintext
26 lines
685 B
Plaintext
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/
|
|
}
|
|
|