void-packages/srcpkgs/hatch-vcs/template

25 lines
876 B
Bash

# Template file for 'hatch-vcs'
pkgname=hatch-vcs
version=0.2.0
revision=1
wrksrc="${pkgname/-/_}-${version}"
build_style=python3-pep517
make_check_args="--deselect tests/test_build.py::test_basic
--deselect tests/test_build.py::test_write
--deselect tests/test_build.py::test_fallback"
hostmakedepends="hatchling"
depends="hatchling python3-setuptools_scm"
checkdepends="${depends} python3-pytest git"
short_desc="Hatch plugin for VCS based versioning"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="MIT"
homepage="https://github.com/ofek/hatch-vcs"
changelog="https://github.com/ofek/hatch-vcs/raw/master/HISTORY.md"
distfiles="${PYPI_SITE}/h/${pkgname/-/_}/${pkgname/-/_}-${version}.tar.gz"
checksum=9913d733b34eec9bb0345d0626ca32165a4ad2de15d1ce643c36d09ca908abff
make_check_pre="env PYTHONPATH=./"
post_install() {
vlicense LICENSE.txt
}