# Template file for 'backblaze-b2'
pkgname=backblaze-b2
version=4.7.1
revision=1
build_style=python3-pep517
hostmakedepends="python3 python3-build python3-packaging python3-pdm-backend python3-pip python3-setuptools_scm python3-wheel hatchling hatch-vcs"
depends="python3-argcomplete python3-Arrow python3-b2sdk python3-docutils
 python3-rst2ansi python3-tabulate python3-tqdm python3-platformdirs"
short_desc="Command Line Interface for Backblaze's B2 storage service"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="MIT"
homepage="https://github.com/Backblaze/B2_Command_Line_Tool"
distfiles="${PYPI_SITE}/b/b2/b2-${version}.tar.gz"
checksum=a6e571d01f559cd6baca822bcec17aba7326c9c878f34439fb590b717a1c6d60
replaces="python-b2>=0"
make_check=no # tests require unpackaged dependencies

post_install() {
	# Avoid conflict with Boost's b2 tool
	mv ${DESTDIR}/usr/bin/b2 ${DESTDIR}/usr/bin/backblaze-b2

	vlicense LICENSE
}

python-b2_package() {
	depends="backblaze-b2>=${version}_${revision}"
	metapackage=yes
	short_desc+=" (transitional dummy package)"
}
