commit:     2bd03a213b1c859d9d05d77f67ce1bf8b3490d31
Author:     Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de>
AuthorDate: Wed Jan 13 22:48:28 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Feb  4 10:20:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bd03a21

app-i18n/transifex-client: drop dependency to dev-python/mock

Bug: https://bugs.gentoo.org/765349
Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../transifex-client-0.14.2-r1.ebuild              | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/app-i18n/transifex-client/transifex-client-0.14.2-r1.ebuild 
b/app-i18n/transifex-client/transifex-client-0.14.2-r1.ebuild
new file mode 100644
index 00000000000..9705b2b75d1
--- /dev/null
+++ b/app-i18n/transifex-client/transifex-client-0.14.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+inherit distutils-r1
+
+DESCRIPTION="A command line interface for Transifex"
+HOMEPAGE="https://pypi.org/project/transifex-client/ 
https://www.transifex.net/";
+SRC_URI="mirror://pypi/t/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/GitPython[${PYTHON_USEDEP}]
+       <dev-python/python-slugify-5.0.0[${PYTHON_USEDEP}]
+       dev-python/requests[${PYTHON_USEDEP}]
+       <dev-python/six-2.0.0[${PYTHON_USEDEP}]
+       dev-python/urllib3[${PYTHON_USEDEP}]"
+
+distutils_enable_tests setup.py
+
+src_prepare() {
+       eapply_user
+       sed -i -e 's:test_fetch_timestamp_from_git_tree:_&:' \
+               tests/test_utils.py || die
+       sed -i '/tests_require=\["mock>=3.0.5,<4.0"\]/d' setup.py || die
+}

Reply via email to