diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2023-01-29 11:27:16 +0200 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2023-01-29 12:00:32 +0200 |
commit | c7236162341343827060dd110f329836fa4b0fef (patch) | |
tree | 464426c7d1111f315606d3310bdcf4c197fdc3e3 /dev-python | |
parent | net-dialup/atinout: update HOMEPAGE (diff) | |
download | guru-c7236162341343827060dd110f329836fa4b0fef.tar.gz guru-c7236162341343827060dd110f329836fa4b0fef.tar.bz2 guru-c7236162341343827060dd110f329836fa4b0fef.zip |
dev-python/dropbox-sdk-python: add 11.36.0
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/dropbox-sdk-python/Manifest | 1 | ||||
-rw-r--r-- | dev-python/dropbox-sdk-python/dropbox-sdk-python-11.36.0.ebuild | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/dropbox-sdk-python/Manifest b/dev-python/dropbox-sdk-python/Manifest index f5a57eb03..b9d99b0d5 100644 --- a/dev-python/dropbox-sdk-python/Manifest +++ b/dev-python/dropbox-sdk-python/Manifest @@ -1 +1,2 @@ DIST dropbox-sdk-python-11.28.0.gh.tar.gz 1155409 BLAKE2B b4b664b0f3c0ebaef23a4878d5331293f015b23fd8c5ed4f691dd309a98a21b82f67bc4f7cd0eced446d055808d17d6871088b1126499e340f34b15e7d6a013f SHA512 9776a75962d7370ea38b50d05801b662884086ccf865288f00cb0941143f41f8d9ab0947676cd403acdc92cd08fce519bf9f1471da9ccc64f0dd7278487be174 +DIST dropbox-sdk-python-11.36.0.gh.tar.gz 1166682 BLAKE2B 46864c7d4143272a81a6e14c7430c153dc93dd0a82d8e78ef8bcf3c1a64919e2cccf725832fb794179f6eef953f172bc1dd579447ee2e8c36a141f9402807b3d SHA512 5dc30fabd0abe52de68d152300a5dbfc9e5fb55ed5799a3ceba5e0782914944d1ed915761f4ca3993913250608e3152234495abefff6f2b548cd11b7f2fe0e23 diff --git a/dev-python/dropbox-sdk-python/dropbox-sdk-python-11.36.0.ebuild b/dev-python/dropbox-sdk-python/dropbox-sdk-python-11.36.0.ebuild new file mode 100644 index 000000000..64bb2c56e --- /dev/null +++ b/dev-python/dropbox-sdk-python/dropbox-sdk-python-11.36.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) +inherit distutils-r1 + +DESCRIPTION="The offical Dropbox SDK for Python" +HOMEPAGE="https://www.dropbox.com/developers" +SRC_URI="https://github.com/dropbox/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/requests-2.16.2[${PYTHON_USEDEP}] + >=dev-python/six-1.12.0[${PYTHON_USEDEP}] + >=dev-python/stone-2.0.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Don't run tests via setup.py pytest + sed -i -e "/'pytest-runner.*',/d" setup.py || die + # this is wrong + sed -i -e "s/^import mock$/from unittest import mock/" test/unit/test_dropbox_unit.py || die + + # disable tests that need SCOPED_USER_DROPBOX_TOKEN + mv test/integration/test_dropbox.py test/integration/_test_dropbox.py || die + sed -i -e "s/\(class\) \(TestClient\)/\\1 _\\2/ + s/test_NoRedirect_whole_flow/_&/" test/unit/test_dropbox_unit.py || die + + distutils-r1_python_prepare_all +} |