1 |
commit: 8b8f631701d6633dbaf6e80b21375272eb14d716 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 22:57:52 2016 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 7 18:11:12 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b8f6317 |
7 |
|
8 |
dev-python/priority: New package, new dep of twisted |
9 |
|
10 |
CVE-2016-6580: All versions of this library prior to 1.2.0 are vulnerable to a denial of service attack... |
11 |
|
12 |
Package-Manager: portage-2.3.1_p8 |
13 |
|
14 |
dev-python/priority/Manifest | 1 + |
15 |
dev-python/priority/metadata.xml | 25 +++++++++++++++++++++++ |
16 |
dev-python/priority/priority-1.2.0.ebuild | 33 +++++++++++++++++++++++++++++++ |
17 |
3 files changed, 59 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/priority/Manifest b/dev-python/priority/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000..f15a8e2 |
22 |
--- /dev/null |
23 |
+++ b/dev-python/priority/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST priority-1.2.0.tar.gz 12064 SHA256 70468e7f43c4bb19cd966d63f78367d8c5af68828611aa3f3e5d77b8948cd2d4 SHA512 00cac802a7d4a6960e71d6d5552c2649becb07e9bd124421b8a391f3681ecdfcc4928725cfffe1011143789b75b8660bd178dbef1f7ebfadd25057d9d7f22dee WHIRLPOOL b1a2d5d9f64e22f341d6ee8f0e0dc43e4fdd2cebb0330ff186be12dbf3e676a20e17b1e27dae1eb7679e6debffaed92eeb2cc88f45fc8180bbc13cca8df2b7e4 |
26 |
|
27 |
diff --git a/dev-python/priority/metadata.xml b/dev-python/priority/metadata.xml |
28 |
new file mode 100644 |
29 |
index 00000000..b087972 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/priority/metadata.xml |
32 |
@@ -0,0 +1,25 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>dol-sen@g.o</email> |
38 |
+ <description>Primary maintainer</description> |
39 |
+ </maintainer> |
40 |
+ <maintainer type="project"> |
41 |
+ <email>python@g.o</email> |
42 |
+ <name>Python</name> |
43 |
+ </maintainer> |
44 |
+ <upstream> |
45 |
+ <maintainer> |
46 |
+ <email>cory@×××××××××.uk</email> |
47 |
+ <name>Cory Benfield</name> |
48 |
+ </maintainer> |
49 |
+ <remote-id type="pypi">priority</remote-id> |
50 |
+ </upstream> |
51 |
+ <longdescription>Priority is a pure-Python implementation of the priority |
52 |
+ logic for HTTP/2, set out in RFC 7540 Section 5.3 (Stream Priority). |
53 |
+ This logic allows for clients to express a preference for how the |
54 |
+ server allocates its (limited) resources to the many outstanding HTTP |
55 |
+ requests that may be running over a single HTTP/2 connection. |
56 |
+ </longdescription> |
57 |
+</pkgmetadata> |
58 |
|
59 |
diff --git a/dev-python/priority/priority-1.2.0.ebuild b/dev-python/priority/priority-1.2.0.ebuild |
60 |
new file mode 100644 |
61 |
index 00000000..e7b9d0d |
62 |
--- /dev/null |
63 |
+++ b/dev-python/priority/priority-1.2.0.ebuild |
64 |
@@ -0,0 +1,33 @@ |
65 |
+# Copyright 1999-2016 Gentoo Foundation |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+# $Id$ |
68 |
+ |
69 |
+EAPI=6 |
70 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy) |
71 |
+ |
72 |
+inherit distutils-r1 |
73 |
+ |
74 |
+DESCRIPTION="A pure-Python implementation of the HTTP/2 priority tree" |
75 |
+HOMEPAGE="http://python-hyper.org/priority https://github.com/python-hyper/priority https://pypi.python.org/pypi/priority" |
76 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
77 |
+ |
78 |
+LICENSE="MIT" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~amd64 ~x86" |
81 |
+IUSE="test" |
82 |
+ |
83 |
+RDEPEND="" |
84 |
+ |
85 |
+DEPEND=" |
86 |
+ test? ( |
87 |
+ >=dev-python/pytest-2.9.2[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/pytest-cov-2.3.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/pytest-xdist-1.14.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] |
91 |
+ ) |
92 |
+" |
93 |
+ |
94 |
+python_test() { |
95 |
+ PYTHONPATH="${S}/test:${BUILD_DIR}/lib" py.test -v || die "Tests failed under ${EPYTHON}" |
96 |
+ cd test |
97 |
+} |