1 |
commit: 6e61044a7c342ba7730e0d55df164ad7197ff01c |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 7 21:13:12 2015 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 7 21:14:33 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e61044a |
7 |
|
8 |
dev-python/python-engineio: Add python-engineio, a python implementation of the Engine.IO realtime server |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-python/python-engineio/Manifest | 1 + |
13 |
dev-python/python-engineio/metadata.xml | 12 +++++++ |
14 |
.../python-engineio/python-engineio-0.8.1.ebuild | 38 ++++++++++++++++++++++ |
15 |
3 files changed, 51 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/python-engineio/Manifest b/dev-python/python-engineio/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..f12a2b0 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/python-engineio/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST python-engineio-0.8.1.tar.gz 11608 SHA256 82973bcf1c32df594bb78c527d9406f301691ecc5ab93c38fc318c1b0142b9fd SHA512 71a6002753f77440fe118004e7ace11eeb348b2d63274e81fe66e8eace899b8b3f1b8b130f86cedb0d78c995f1f83053ab7811e68fbb6e977072d9491a35b6b7 WHIRLPOOL c2a62848b2a83adb5eea255c60c77d6355053a360d885dacfe117a104974987c9379236c62eed6f496e115c8181428a09ccd51720438b4110902b43c06778450 |
24 |
|
25 |
diff --git a/dev-python/python-engineio/metadata.xml b/dev-python/python-engineio/metadata.xml |
26 |
new file mode 100644 |
27 |
index 0000000..cf3c0cb |
28 |
--- /dev/null |
29 |
+++ b/dev-python/python-engineio/metadata.xml |
30 |
@@ -0,0 +1,12 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <herd>python</herd> |
35 |
+ <upstream> |
36 |
+ <remote-id type="pypi">python-engineio</remote-id> |
37 |
+ <remote-id type="github">miguelgrinberg/python-engineio</remote-id> |
38 |
+ </upstream> |
39 |
+ <maintainer> |
40 |
+ <email>zmedico@g.o</email> |
41 |
+ </maintainer> |
42 |
+</pkgmetadata> |
43 |
|
44 |
diff --git a/dev-python/python-engineio/python-engineio-0.8.1.ebuild b/dev-python/python-engineio/python-engineio-0.8.1.ebuild |
45 |
new file mode 100644 |
46 |
index 0000000..6f1d617 |
47 |
--- /dev/null |
48 |
+++ b/dev-python/python-engineio/python-engineio-0.8.1.ebuild |
49 |
@@ -0,0 +1,38 @@ |
50 |
+# Copyright 1999-2015 Gentoo Foundation |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+# $Id$ |
53 |
+ |
54 |
+EAPI=5 |
55 |
+PYTHON_COMPAT=( python{2_7,3_4} ) |
56 |
+ |
57 |
+inherit distutils-r1 |
58 |
+ |
59 |
+MY_PN="" |
60 |
+DESCRIPTION="Python implementation of the Engine.IO realtime server." |
61 |
+HOMEPAGE="https://${PN}.readthedocs.org/ https://github.com/miguelgrinberg/${PN}/ https://pypi.python.org/pypi/${PN}" |
62 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
63 |
+LICENSE="MIT" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+IUSE="test" |
67 |
+ |
68 |
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]" |
69 |
+DEPEND="${RDEPEND} |
70 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
71 |
+ test? ( |
72 |
+ dev-python/eventlet[${PYTHON_USEDEP}] |
73 |
+ dev-python/mock[${PYTHON_USEDEP}] |
74 |
+ dev-python/pbr[${PYTHON_USEDEP}] |
75 |
+ )" |
76 |
+ |
77 |
+# pypi tarball does not contain tests |
78 |
+RESTRICT="test" |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ sed -e 's:pbr<1.7.0:pbr:' -i setup.py || die |
82 |
+ distutils-r1_src_prepare |
83 |
+} |
84 |
+ |
85 |
+python_test() { |
86 |
+ esetup.py test || die |
87 |
+} |