diff --git a/dev-python/b2sdk/Manifest b/dev-python/b2sdk/Manifest index 459ce72f77..5fa9af4893 100644 --- a/dev-python/b2sdk/Manifest +++ b/dev-python/b2sdk/Manifest @@ -1 +1,2 @@ DIST b2sdk-2.3.0.tar.gz 390949 BLAKE2B e14c9fc56b7ed66350b8d73456dd50b0f6fdb40d7a6fe73cf7950afcb25bb5257a63bb361d8cbca99116b4999a2b0195967b4e08aff5ca9aaf5c16e4b4b532eb SHA512 29ba07581d0e587b413396f128d7fe14f8ac25ea0553eef69e1c428823690974d9373db727321f9838886a07946c36defdd5bae24d31266751d6b1a2f05968c6 +DIST b2sdk-2.8.1.tar.gz 404058 BLAKE2B 69a74d995a7ff91f252676edfbe274e6239ec70f95ccaf5f357fd13f482dea433074b471bd06fc1ee7f88bdc964d3dd5571441491dcfa333f8101eeb8b9b3ad8 SHA512 20cc8b4f28f010588965a5ca6300b41d914ecdba57f28ab0719c4ad52293d41e5c62648a178a5202614cdc65f22a9e48c5dd966a682daa98be07fdb04235f318 diff --git a/dev-python/b2sdk/b2sdk-2.8.1.ebuild b/dev-python/b2sdk/b2sdk-2.8.1.ebuild new file mode 100644 index 0000000000..8e70de4f50 --- /dev/null +++ b/dev-python/b2sdk/b2sdk-2.8.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517="pdm-backend" +PYTHON_COMPAT=( python3_{11..13} ) +inherit distutils-r1 + +DESCRIPTION="The client library for BackBlaze's B2 product" +HOMEPAGE="https://github.com/Backblaze/b2-sdk-python" +SRC_URI="https://github.com/Backblaze/b2-sdk-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +S="${WORKDIR}/b2-sdk-python-${PV}" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +export PDM_BUILD_SCM_VERSION=${PV} + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/annotated-types-0.7.0[${PYTHON_USEDEP}] + >=dev-python/logfury-1.0.1[${PYTHON_USEDEP}] + >=dev-python/requests-2.9.1[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.7.1[${PYTHON_USEDEP}] + ') +" + +distutils_enable_tests pytest + +# tqdm dependency is temporary, see +# https://github.com/Backblaze/b2-sdk-python/issues/489 +BDEPEND+=" test? ( + $(python_gen_cond_dep ' + >=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}] + dev-python/pytest-lazy-fixtures[${PYTHON_USEDEP}] + >=dev-python/tqdm-4.66.2[${PYTHON_USEDEP}] + ') +)" + +# These tests seem to require some b2 authentication (they're integration tests +# so this is not unreasonable) +EPYTEST_DESELECT=( + # These integration tests require an actual connection to backblaze, which + # can't typically work in the sandbox + test/integration +)