Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mailmanclient/
Date: Mon, 27 Sep 2021 14:01:06
Message-Id: 1632751029.be493eeeb2c1ade7b41ed4b11c2d82984662ff2c.arthurzam@gentoo
1 commit: be493eeeb2c1ade7b41ed4b11c2d82984662ff2c
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 27 13:57:09 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 27 13:57:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be493eee
7
8 net-mail/mailmanclient: add 3.3.3, enable py3.9, enable tests
9
10 Closes: https://bugs.gentoo.org/809167
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 net-mail/mailmanclient/Manifest | 1 +
14 net-mail/mailmanclient/mailmanclient-3.3.3.ebuild | 41 +++++++++++++++++++++++
15 2 files changed, 42 insertions(+)
16
17 diff --git a/net-mail/mailmanclient/Manifest b/net-mail/mailmanclient/Manifest
18 index d68441dfc19..26154d03b0e 100644
19 --- a/net-mail/mailmanclient/Manifest
20 +++ b/net-mail/mailmanclient/Manifest
21 @@ -1 +1,2 @@
22 DIST mailmanclient-3.3.1.tar.gz 78807 BLAKE2B 04542069b3a7a4b0069363f09c21ce321350fe25e57a86e5ac9ac9ec5329777acfdd1ccf62354d9df86f615f37328a8c9700811e05823ec39a648c4477b9321e SHA512 bb23d47b4c5c9f4881298330f530624c7af243e9e583f8c20cac2de77fc4a789dae729e8daa96b6a6bbe775ac549d0fc118773697b7a156fb74e4365a18683b7
23 +DIST mailmanclient-3.3.3.tar.gz 90137 BLAKE2B d354123fb7735d8b670422461f3d5697a30ac83d1b2f9c7f642583423ab383f58b0d0604f18be23175fcdabe42721ee02102e764211fd0723c9146f8c39581fd SHA512 a4d18a7fc6084dfb20a7028cc085c31e696b8c2db4eec674852929b1d3a221a065b8e33d8047d018d4a0edf1afb3bcb55e76906808c0f6b3715abb8a81437b9e
24
25 diff --git a/net-mail/mailmanclient/mailmanclient-3.3.3.ebuild b/net-mail/mailmanclient/mailmanclient-3.3.3.ebuild
26 new file mode 100644
27 index 00000000000..00d0bcb61d8
28 --- /dev/null
29 +++ b/net-mail/mailmanclient/mailmanclient-3.3.3.ebuild
30 @@ -0,0 +1,41 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Python bindings for the GNU Mailman 3 REST API"
41 +HOMEPAGE="https://www.list.org"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="LGPL-3+"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +
48 +RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
49 +BDEPEND="
50 + test? (
51 + dev-python/httpx[${PYTHON_USEDEP}]
52 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
53 + dev-python/pytest-services[${PYTHON_USEDEP}]
54 + net-mail/mailman[${PYTHON_USEDEP}]
55 + )
56 +"
57 +
58 +DOCS=( README.rst )
59 +
60 +distutils_enable_tests pytest
61 +
62 +EPYTEST_DESELECT=(
63 + # Needs network
64 + src/mailmanclient/tests/test_client.py::TestFindUsers::test_find_user_page
65 + src/mailmanclient/tests/test_client.py::TestFindUsers::test_find_users
66 +)
67 +
68 +src_prepare() {
69 + sed -e '/addopts/d' -i pytest.ini || die
70 + distutils-r1_src_prepare
71 +}