net-mail/mailmanclient: new package, add 3.3.5

This commit is contained in:
Alarig Le Lay 2023-03-21 20:22:16 +01:00
parent 3254b6e9db
commit a970967d59
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
3 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST mailmanclient-3.3.5.tar.gz 89608 BLAKE2B 9797e1de76e7beda42d2d559bb496ad6d8c87b0118749539c2a48ef999668d62ea96db4941174b6a8639a44df2b7d1e9fdc436b20b19a1deba458f74190e6191 SHA512 42e1a30e7bbaeb57745cde116d441aafa4941e145429b1117993c24fd8fbd3e35d797e36f331e00a37e8c931fc44621c8103cc927b5bb1da0a273872c96c86c8

View file

@ -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_{9..11} )
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
}

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">mailmanclient</remote-id>
<remote-id type="gitlab">mailman/mailmanclient</remote-id>
</upstream>
</pkgmetadata>