summaryrefslogtreecommitdiff
path: root/dev-python/matrix-client
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/matrix-client')
-rw-r--r--dev-python/matrix-client/matrix-client-0.3.2-r1.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/matrix-client/matrix-client-0.3.2-r1.ebuild b/dev-python/matrix-client/matrix-client-0.3.2-r1.ebuild
new file mode 100644
index 000000000000..1c78e120e00e
--- /dev/null
+++ b/dev-python/matrix-client/matrix-client-0.3.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2021 Liguros Authors
+# Distributed under the terms of the GNU General Public License v2
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8,9,10} )
+
+inherit distutils-r1
+
+MY_PN=${PN/-/_}
+DESCRIPTION="Client-Server SDK for Matrix"
+HOMEPAGE="https://github.com/matrix-org/matrix-python-sdk https://pypi.org/project/matrix-client/"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND=">=dev-python/requests-2.22[${PYTHON_USEDEP}]
+ dev-python/urllib3[${PYTHON_USEDEP}]"
+DEPEND="${REDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/pytest-runner[${PYTHON_USEDEP}]
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+python_test() {
+ nosetests --verbose || die
+ py.test -v -v || die
+}