dev-python/b2sdk - 2.10.3 (gentoo)

Search

Package Information

Description:
Library to access Backblaze B2 cloud storage
Homepage:
https://github.com/Backblaze/b2-sdk-python https://pypi.org/project/b2sdk/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2.10.3 8 ~amd64 0
View Raw Ebuild
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1 pypi

DESCRIPTION="Library to access Backblaze B2 cloud storage"
HOMEPAGE="
	https://github.com/Backblaze/b2-sdk-python
	https://pypi.org/project/b2sdk/
"
# No tests in sdist
SRC_URI="https://github.com/Backblaze/b2-sdk-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}"/b2-sdk-python-${PV}

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

# pydantic can be used but it has a fallback
RDEPEND="
	>=dev-python/annotated-types-0.5.0[${PYTHON_USEDEP}]
	>=dev-python/logfury-1.0.1[${PYTHON_USEDEP}]
	>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
	>=dev-python/tenacity-9.1.2[${PYTHON_USEDEP}]
"
BDEPEND="
	dev-python/hatch-vcs[${PYTHON_USEDEP}]
	test? (
		dev-python/responses[${PYTHON_USEDEP}]
		>=dev-python/tqdm-4.5.0[${PYTHON_USEDEP}]
	)
"

EPYTEST_IGNORE=(
	# Requires network access and real API keys
	test/integration/test_bucket.py
	test/integration/test_download.py
	test/integration/test_file_version_attributes.py
	test/integration/test_sync.py
	test/integration/test_upload.py
	test/integration/test_raw_api.py
)

EPYTEST_PLUGINS=( pytest-{lazy-fixtures,mock,timeout} )
distutils_enable_tests pytest

export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}

Dependencies

RDEPEND

	>=dev-python/annotated-types-0.5.0[${PYTHON_USEDEP}]
	>=dev-python/logfury-1.0.1[${PYTHON_USEDEP}]
	>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
	>=dev-python/tenacity-9.1.2[${PYTHON_USEDEP}]

BDEPEND

	dev-python/hatch-vcs[${PYTHON_USEDEP}]
	test? (
		dev-python/responses[${PYTHON_USEDEP}]
		>=dev-python/tqdm-4.5.0[${PYTHON_USEDEP}]
	)

Manifest for 2.10.3

Type File Size Source URLs
DIST b2sdk-2.10.3.gh.tar.gz 564677 bytes https://github.com/Backblaze/b2-sdk-python/archive/refs/tags/v2.10.3.tar.gz