# Copyright 2020-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{11..13} ) DISTUTILS_USE_PEP517="pdm-backend" DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 pypi DESCRIPTION="Command-line tool for BackBlaze's B2 product" HOMEPAGE="https://github.com/Backblaze/B2_Command_Line_Tool" SRC_URI="https://github.com/Backblaze/B2_Command_Line_Tool/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" S="${WORKDIR}/B2_Command_Line_Tool-${PV}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" PATCHES=( "${FILESDIR}/b2-4.0.1-nameclash.patch" ) export PDM_BUILD_SCM_VERSION=${PV} RDEPEND=" $(python_gen_cond_dep ' >=dev-python/argcomplete-3.5.2[${PYTHON_USEDEP}] =dev-python/arrow-1.0.2[${PYTHON_USEDEP}] =dev-python/b2sdk-2.9.4[${PYTHON_USEDEP}] =dev-python/docutils-0.18.1[${PYTHON_USEDEP}] =dev-python/phx-class-registry-4.0[${PYTHON_USEDEP}] =dev-python/tqdm-4.65.0[${PYTHON_USEDEP}] =dev-python/platformdirs-3.11.0[${PYTHON_USEDEP}]