diff options
Diffstat (limited to 'dev-python/priority')
| -rw-r--r-- | dev-python/priority/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/priority/files/priority-1.3.0-test-timeout.patch | 20 | ||||
| -rw-r--r-- | dev-python/priority/metadata.xml | 23 | ||||
| -rw-r--r-- | dev-python/priority/priority-1.3.0.ebuild | 27 |
4 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/priority/Manifest b/dev-python/priority/Manifest new file mode 100644 index 000000000000..4af938515571 --- /dev/null +++ b/dev-python/priority/Manifest @@ -0,0 +1 @@ +DIST priority-1.3.0.tar.gz 13827 BLAKE2B 8c100eb44ed42f4f624bfb37dd6f698a3da84812783bd44ba82afef565562379a7677b3cbc9e16c4ea5a5dcc91d0897fa47c341a81bc1875461a72aff328fcff SHA512 cefb13b15e99ef98c37fdd1486466c9e1d7d04b4574cbca1665fde7b7b44cc7d66964bed41184315a9b51bd6f9d0e02bbe113bfa004a754ac270170309b71e0a diff --git a/dev-python/priority/files/priority-1.3.0-test-timeout.patch b/dev-python/priority/files/priority-1.3.0-test-timeout.patch new file mode 100644 index 000000000000..3b904f340998 --- /dev/null +++ b/dev-python/priority/files/priority-1.3.0-test-timeout.patch @@ -0,0 +1,20 @@ +diff -dupr a/test/test_priority.py b/test/test_priority.py +--- a/test/test_priority.py 2017-01-27 11:57:03.000000000 +0100 ++++ b/test/test_priority.py 2019-11-22 09:03:52.772710452 +0100 +@@ -12,7 +12,7 @@ import itertools + + import pytest + +-from hypothesis import given ++from hypothesis import given, settings + from hypothesis.strategies import ( + integers, lists, tuples, sampled_from + ) +@@ -489,6 +489,7 @@ class TestPriorityTreeOutput(object): + fairness and equidistribution. + """ + @given(STREAMS_AND_WEIGHTS) ++ @settings(deadline=None) + def test_period_of_repetition(self, streams_and_weights): + """ + The period of repetition of a priority sequence is given by the sum of diff --git a/dev-python/priority/metadata.xml b/dev-python/priority/metadata.xml new file mode 100644 index 000000000000..c28b25b94ebf --- /dev/null +++ b/dev-python/priority/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <maintainer> + <email>cory@lukasa.co.uk</email> + <name>Cory Benfield</name> + </maintainer> + <remote-id type="pypi">priority</remote-id> + <remote-id type="github">python-hyper/priority</remote-id> + </upstream> + <longdescription>Priority is a pure-Python implementation of the priority + logic for HTTP/2, set out in RFC 7540 Section 5.3 (Stream Priority). + This logic allows for clients to express a preference for how the + server allocates its (limited) resources to the many outstanding HTTP + requests that may be running over a single HTTP/2 connection. + </longdescription> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/priority/priority-1.3.0.ebuild b/dev-python/priority/priority-1.3.0.ebuild new file mode 100644 index 000000000000..5ed8bbaa6c9c --- /dev/null +++ b/dev-python/priority/priority-1.3.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9}) + +inherit distutils-r1 + +DESCRIPTION="A pure-Python implementation of the HTTP/2 priority tree" +HOMEPAGE="https://python-hyper.org/priority/en/latest/ + https://github.com/python-hyper/priority + https://pypi.org/project/priority/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86" + +DEPEND=" + test? ( >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] ) +" + +PATCHES=( + "${FILESDIR}"/priority-1.3.0-test-timeout.patch +) + +distutils_enable_tests pytest |
