void-packages/srcpkgs/hatch/template

36 lines
1.4 KiB
Bash

# Template file for 'hatch'
pkgname=hatch
version=1.6.3
revision=3
build_style=python3-pep517
# ignore backend tests, because updating hatchling when there is no new hatch
# version yet breaks these in hatch.
make_check_args="--ignore tests/backend
--deselect tests/cli/run/test_run.py::test_scripts_no_environment"
_deps="python3-click hatchling python3-httpx python3-hyperlink python3-keyring
python3-packaging python3-pexpect python3-platformdirs python3-pyperclip
python3-rich python3-shellingham python3-tomli-w python3-tomlkit
python3-userpath python3-virtualenv"
hostmakedepends="hatchling ${_deps}"
depends="${_deps}"
checkdepends="${_deps} python3-pytest python3-pytest-mock
python3-pytest-xdist git python3-pip"
short_desc="Modern, extensible Python project management "
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://hatch.pypa.io/latest/"
changelog="https://raw.githubusercontent.com/pypa/hatch/master/docs/history/hatch.md"
distfiles="${PYPI_SITE}/h/hatch/hatch-${version}.tar.gz"
checksum=650e671ba300318e498ef93bbe3b99b32ce14920764fb8753f89993f63eed79a
make_check_pre="env PYTHONPATH=./src"
post_install() {
vlicense LICENSE.txt
for shell in zsh bash fish; do
PYTHONPATH="${DESTDIR}/${py3_sitelib}" PATH="${DESTDIR}/usr/bin:${PATH}" \
_HATCH_COMPLETE="${shell}_source" hatch > "hatch.${shell}"
vcompletion "hatch.${shell}" "${shell}"
done
}