dev-python/dropbox: add 12.2.2

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu committed 2026-09-25 21:37:27 +03:00
1 parent b929cee028
commit 445de8a5e6
2 files changed
+52

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
DIST dropbox-12.1.0.gh.tar.gz 1152840 BLAKE2B 61614cefcf4a7bafa5c7f68d906ff6afe772fe9a4a587f0f0eebbd880f152bd191aebccab0dc723c1c58f8fb772b6a956b03312e3b16d94754c21437207fe46b SHA512 8108efcf9bbd979807787bc545b0711e41356dc8a1a421df8eaa643bf0281e339d417e75a48b09ab2f3cd5894cf8c731c21e2d6ab3f5fe75349caf4422c8c28e
DIST dropbox-12.2.1.gh.tar.gz 1252631 BLAKE2B 45673f0845aa60bcb00a9fad2e5e0f2d6b843ddfd77c7db814dda2a17483264ff3473273829684163e589d759f791550030df9cce1be9adde000bd2335370dd1 SHA512 7247b94dfa97e1225d5e2f60c5dd55e25b3454610621781c4e097cce4cc402cd2eb96261e32990364b6d5eafbef2dd4b0df54b3e93bfa2cf07191ea46414a788
DIST dropbox-12.2.2.gh.tar.gz 1292207 BLAKE2B 768b9b2dcfb496c2135bd5a4d4a84422126000b8e8b4dbf3e9fd89ba4a808a1485dc376ce40840b402a25b210545ea1c8c70b833e7c96a521b6105a83054ce07 SHA512 10d11f3d4258a36650da8a1e49845c9c906d31ca30bae3b601381e081b1d25acb6e343762d552914eb5a9dd12836facd68f524107edfd86f383a28e5f533cc67
+51
View File
@@ -0,0 +1,51 @@
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
MY_PN=dropbox-sdk-python
MY_P=${MY_PN}-${PV}
DESCRIPTION="The offical Dropbox SDK for Python"
HOMEPAGE="https://www.dropbox.com/developers"
# pypi does not have tests, stick with gh
SRC_URI="https://github.com/dropbox/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
>=dev-python/requests-2.16.2[${PYTHON_USEDEP}]
>=dev-python/stone-3.5.3[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
"
# disable tests that need SCOPED_USER_DROPBOX_TOKEN
# and tests that fail
EPYTEST_DESELECT=(
test/integration/test_dropbox.py
test/unit/test_dropbox_unit.py::TestClient
test/unit/test_dropbox_unit.py::TestOAuth::test_NoRedirect_whole_flow
)
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
if [[ ${PV} == *_p* ]] ; then
local MY_PV=$(ver_cut 1-3)
sed -i -e "s/__version__ = '0.0.0'/__version__ = '${MY_PV}'/" dropbox/dropbox_client.py || die
fi
sed -i -e "s/^import mock$/from unittest import mock/" test/unit/test_dropbox_unit.py || die
distutils-r1_src_prepare
}