summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-09-27 16:57:09 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2021-09-27 16:57:09 +0300
commitbe493eeeb2c1ade7b41ed4b11c2d82984662ff2c (patch)
treed00ddf0bd6b2262857389fd8842d36068549c8d0 /net-mail
parentgames-engines/qtads: add missing qtsvg new dependency (diff)
downloadgentoo-be493eeeb2c1ade7b41ed4b11c2d82984662ff2c.tar.gz
gentoo-be493eeeb2c1ade7b41ed4b11c2d82984662ff2c.tar.bz2
gentoo-be493eeeb2c1ade7b41ed4b11c2d82984662ff2c.zip
net-mail/mailmanclient: add 3.3.3, enable py3.9, enable tests
Closes: https://bugs.gentoo.org/809167 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/mailmanclient/Manifest1
-rw-r--r--net-mail/mailmanclient/mailmanclient-3.3.3.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/net-mail/mailmanclient/Manifest b/net-mail/mailmanclient/Manifest
index d68441dfc19c..26154d03b0ea 100644
--- a/net-mail/mailmanclient/Manifest
+++ b/net-mail/mailmanclient/Manifest
@@ -1 +1,2 @@
DIST mailmanclient-3.3.1.tar.gz 78807 BLAKE2B 04542069b3a7a4b0069363f09c21ce321350fe25e57a86e5ac9ac9ec5329777acfdd1ccf62354d9df86f615f37328a8c9700811e05823ec39a648c4477b9321e SHA512 bb23d47b4c5c9f4881298330f530624c7af243e9e583f8c20cac2de77fc4a789dae729e8daa96b6a6bbe775ac549d0fc118773697b7a156fb74e4365a18683b7
+DIST mailmanclient-3.3.3.tar.gz 90137 BLAKE2B d354123fb7735d8b670422461f3d5697a30ac83d1b2f9c7f642583423ab383f58b0d0604f18be23175fcdabe42721ee02102e764211fd0723c9146f8c39581fd SHA512 a4d18a7fc6084dfb20a7028cc085c31e696b8c2db4eec674852929b1d3a221a065b8e33d8047d018d4a0edf1afb3bcb55e76906808c0f6b3715abb8a81437b9e
diff --git a/net-mail/mailmanclient/mailmanclient-3.3.3.ebuild b/net-mail/mailmanclient/mailmanclient-3.3.3.ebuild
new file mode 100644
index 000000000000..00d0bcb61d8a
--- /dev/null
+++ b/net-mail/mailmanclient/mailmanclient-3.3.3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for the GNU Mailman 3 REST API"
+HOMEPAGE="https://www.list.org"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ dev-python/httpx[${PYTHON_USEDEP}]
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/pytest-services[${PYTHON_USEDEP}]
+ net-mail/mailman[${PYTHON_USEDEP}]
+ )
+"
+
+DOCS=( README.rst )
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # Needs network
+ src/mailmanclient/tests/test_client.py::TestFindUsers::test_find_user_page
+ src/mailmanclient/tests/test_client.py::TestFindUsers::test_find_users
+)
+
+src_prepare() {
+ sed -e '/addopts/d' -i pytest.ini || die
+ distutils-r1_src_prepare
+}