mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 06:32:59 -04:00
dev-python/dropbox: drop 12.0.2
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST dropbox-12.0.2_p20260506.gh.tar.gz 1152945 BLAKE2B 728a269669ab835541c71068f05c401131fbe1d06f2f095a59e338d83cb5bd2bae674c8c1d050ae252a6af7db60e95b5be28e4b13f16296ecb35b6abd7efc450 SHA512 68ff810162ff945bcbcd9c6e7fb0cbf255b35b0964aa2391377a3cbe928b87a5408abc3cbccf4c9d2d0cde365393faf4e8186da1cff3b2d400732ac110eb404d
|
||||
DIST dropbox-sdk-python-12.0.2.gh.tar.gz 1155008 BLAKE2B cc0006909a204f0b9efab7605680027b144dfff5c91ddf31460884ada4948b285ff0777f19f9395a1fc447a906018c3a43b40bc7651bdbb715c597849e7ecba9 SHA512 73834c89e2dc8b129a549d082a7862ec81f731c4977c6650cc421c08b62903b78c9fa1e191a330022591e2cb0e29b825e89e2d04056e2f4e6362a168b57fec39
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
# Copyright 2021-2024 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
|
||||
|
||||
GH_PN=dropbox-sdk-python
|
||||
|
||||
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/${GH_PN}/archive/refs/tags/v${PV}.tar.gz -> ${GH_PN}-${PV}.gh.tar.gz"
|
||||
S="${WORKDIR}"/${GH_PN}-${PV}
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/stone[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
"
|
||||
# setuptools-82 removed 'pkg_resources'
|
||||
# https://github.com/dropbox/dropbox-sdk-python/issues/525
|
||||
BDEPEND="
|
||||
<dev-python/setuptools-82.0.0[${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
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# this is wrong
|
||||
sed -i -e "s/^import mock$/from unittest import mock/" test/unit/test_dropbox_unit.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
Reference in New Issue
Block a user