1 |
commit: 5a0eba86fc6a387f3723cec9f4e2589e8a83d8dc |
2 |
Author: Oleksandr Trotsenko <oleksandr.trotsenko <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Aug 8 03:51:24 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 17 08:30:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a0eba86 |
7 |
|
8 |
dev-python/wsproto: Introducing new package |
9 |
|
10 |
Introducing wsproto into Gentoo. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/654862 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/9503 |
14 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
15 |
|
16 |
dev-python/wsproto/Manifest | 1 + |
17 |
dev-python/wsproto/metadata.xml | 17 +++++++++++++++++ |
18 |
dev-python/wsproto/wsproto-0.11.0.ebuild | 32 ++++++++++++++++++++++++++++++++ |
19 |
3 files changed, 50 insertions(+) |
20 |
|
21 |
diff --git a/dev-python/wsproto/Manifest b/dev-python/wsproto/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..a87f546b358 |
24 |
--- /dev/null |
25 |
+++ b/dev-python/wsproto/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST wsproto-0.11.0.tar.gz 41179 BLAKE2B 72486adde659e96910bcc56efe5f3ddd71d962e2844e332eabea2a0cbe5574678be85d330fdd54f951f679dfe5b1c185641a30169cc6cd9ac6c4ed066c6a3533 SHA512 583e030dc88971b3733e5e84e5fbaa70d6043d01485cabbbf45470baa31e4f511aea55e108132fc298aeae0031542af7bdd22b7ae25b11832179025a2fde4bdd |
28 |
|
29 |
diff --git a/dev-python/wsproto/metadata.xml b/dev-python/wsproto/metadata.xml |
30 |
new file mode 100644 |
31 |
index 00000000000..67543673df3 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/wsproto/metadata.xml |
34 |
@@ -0,0 +1,17 @@ |
35 |
+<?xml version="1.0" encoding="UTF-8"?> |
36 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
37 |
+<pkgmetadata> |
38 |
+ <maintainer type="person"> |
39 |
+ <email>oleksandr.trotsenko@×××××.com</email> |
40 |
+ <name>Oleksandr Trotsenko</name> |
41 |
+ </maintainer> |
42 |
+ <maintainer type="project"> |
43 |
+ <email>proxy-maint@g.o</email> |
44 |
+ <name>Proxy Maintainers</name> |
45 |
+ </maintainer> |
46 |
+ <upstream> |
47 |
+ <remote-id type="github">python-hyper/wsproto</remote-id> |
48 |
+ <doc>https://wsproto.readthedocs.io/en/latest/</doc> |
49 |
+ <bugs-to>https://github.com/python-hyper/wsproto/issues</bugs-to> |
50 |
+ </upstream> |
51 |
+</pkgmetadata> |
52 |
|
53 |
diff --git a/dev-python/wsproto/wsproto-0.11.0.ebuild b/dev-python/wsproto/wsproto-0.11.0.ebuild |
54 |
new file mode 100644 |
55 |
index 00000000000..6e936e5de83 |
56 |
--- /dev/null |
57 |
+++ b/dev-python/wsproto/wsproto-0.11.0.ebuild |
58 |
@@ -0,0 +1,32 @@ |
59 |
+# Copyright 1999-2018 Gentoo Foundation |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+ |
62 |
+EAPI=6 |
63 |
+ |
64 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
65 |
+ |
66 |
+inherit distutils-r1 |
67 |
+ |
68 |
+DESCRIPTION="WebSockets state-machine based protocol implementation" |
69 |
+HOMEPAGE="https://github.com/python-hyper/wsproto https://pypi.python.org/pypi/wsproto" |
70 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
71 |
+ |
72 |
+LICENSE="MIT" |
73 |
+SLOT="0" |
74 |
+KEYWORDS="~amd64 ~x86" |
75 |
+IUSE="test" |
76 |
+ |
77 |
+RDEPEND=" |
78 |
+ =dev-python/h11-0.7*[${PYTHON_USEDEP}] |
79 |
+ virtual/python-enum34[${PYTHON_USEDEP}] |
80 |
+" |
81 |
+DEPEND=" |
82 |
+ ${RDEPEND} |
83 |
+ test? ( |
84 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
85 |
+ ) |
86 |
+" |
87 |
+ |
88 |
+python_test() { |
89 |
+ py.test -v || die "Testing failed" |
90 |
+} |