summaryrefslogtreecommitdiff
path: root/dev-python/brotlipy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/brotlipy
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/brotlipy')
-rw-r--r--dev-python/brotlipy/Manifest3
-rw-r--r--dev-python/brotlipy/brotlipy-0.7.0.ebuild11
-rw-r--r--dev-python/brotlipy/files/brotlipy-0.7.0-test-deadline.patch28
3 files changed, 38 insertions, 4 deletions
diff --git a/dev-python/brotlipy/Manifest b/dev-python/brotlipy/Manifest
index 330c5b358283..badaedf633a4 100644
--- a/dev-python/brotlipy/Manifest
+++ b/dev-python/brotlipy/Manifest
@@ -1,4 +1,5 @@
+AUX brotlipy-0.7.0-test-deadline.patch 913 BLAKE2B f7a57989defc3cbc6aa0f29d9db73d7aaf5abae22609b4d501699b4e5195f50fa8025feee64e7935584868d5100f3e088abcc2086056058464f3f4ad14a939e6 SHA512 c125622a149582b0e45397877f4f609ced2d9b388ed101a7a5c0bdbdbb849093538be5ba12e6d549c7a9fea1df3c74dc8dcc3d4bc894bb2ebae0117440b1d5af
DIST brotli-46c1a881b41bb638c76247558aa04b1591af3aa7.tar.gz 19840371 BLAKE2B b9a1c3c2e5b62bd63b392debe54bd1732ac1cb31f88500f0142108b453649d96901d9a03b6db98642cb9abaf9188c06d440f2b8bd3cf57fbbb52196a931f5079 SHA512 dc573c90491032a205f32f0ce9c93e95b06c70a3107caa9501e038a212226c37117d63709a29843367344bf7d18cf32d0c0578b11166387198e12b38b1522406
DIST brotlipy-0.7.0.tar.gz 19375 BLAKE2B 035dc8757e491bc4fc0d8e2b6b82703eecc8f6f4150da42fda0f6c6f42a617519f5191371eb1dd976b8bbfeab88845bb018b874a395cdbf0ff409a6911f969f5 SHA512 bec8183cf3cc8ba9e594d1a86a8a33d88a6ac8e9c6a6287c837bda3726183ff1b486f2c49da4e489b5b3cb51b57dd5816413b59419920c2ced48435221f1beaf
-EBUILD brotlipy-0.7.0.ebuild 1401 BLAKE2B 44ef7e82661354a2722ca261de4ead380d9874065afd340753778aeeed25607a33d612780ebddf1314e3153774a71591d9396043182daff5ec622ae996a5fd6f SHA512 e531827d977be2f448e22b17b2b9ff56804d2250c484f12f168e30cdf69ae0462fd12667d5db7287ee58dff858369a17153b8b893e492622a5c76e8e791df44e
+EBUILD brotlipy-0.7.0.ebuild 1530 BLAKE2B 3c266612dd720d7852616e9da929ccead467ac338b5b165006cf99238dbd371e1a0bdd4f68c6b83849379390f564a2dd9658e069ea45c5f118656d30e69af8ad SHA512 345f171d6fe093fc9a6c7891a4309e642695dfc09bf5e5ec3450a905a15416c18e62afcd4dffd2b13cf828b3dc38ceebf8c042ce428cd2c5af47ad196de2cc39
MISC metadata.xml 381 BLAKE2B 0ce0f75aab60659850e7d04532911feea89a4bccf8ec7826ebfb924416af438d5a2bf7981435a22e825b39881ac20a8b2a0bd93a66b2d7b031c72123033f1d78 SHA512 9b3a37c75a62f1873288ffba45ab105225a90d72e01c7ead253b5a903ec28babe152074cc7595d6398104f8ccc50ebfc71ff72c4e620a7dad1b5e57f767cd118
diff --git a/dev-python/brotlipy/brotlipy-0.7.0.ebuild b/dev-python/brotlipy/brotlipy-0.7.0.ebuild
index 36eac2049049..2fdc5f0ea568 100644
--- a/dev-python/brotlipy/brotlipy-0.7.0.ebuild
+++ b/dev-python/brotlipy/brotlipy-0.7.0.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7,3_8} pypy{,3} )
inherit distutils-r1
@@ -19,8 +19,9 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 x86"
+KEYWORDS="amd64 ~arm ~arm64 ~hppa ~sparc x86"
IUSE="test"
+RESTRICT="!test? ( test )"
RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]"
DEPEND="
@@ -32,6 +33,10 @@ DEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}"/brotlipy-0.7.0-test-deadline.patch
+)
+
src_prepare() {
# Inject the brotli lib.
rm -r "${WORKDIR}/${P}/libbrotli" || die "Could not remove the bundled brotli lib folder."
@@ -40,7 +45,7 @@ src_prepare() {
# Tests fail if we have this folder preserved within the lib.
rm -r "${WORKDIR}/${P}/libbrotli/python" || die "Could not remove 'python' subfolder."
- eapply_user
+ distutils-r1_src_prepare
}
python_test() {
diff --git a/dev-python/brotlipy/files/brotlipy-0.7.0-test-deadline.patch b/dev-python/brotlipy/files/brotlipy-0.7.0-test-deadline.patch
new file mode 100644
index 000000000000..219243986dd9
--- /dev/null
+++ b/dev-python/brotlipy/files/brotlipy-0.7.0-test-deadline.patch
@@ -0,0 +1,28 @@
+diff -dupr a/test/test_simple_compression.py b/test/test_simple_compression.py
+--- a/test/test_simple_compression.py 2017-05-30 10:20:01.000000000 +0200
++++ b/test/test_simple_compression.py 2019-11-22 11:37:31.248755016 +0100
+@@ -9,7 +9,7 @@ import brotli
+
+ import pytest
+
+-from hypothesis import given
++from hypothesis import given, settings
+ from hypothesis.strategies import binary, integers, sampled_from, one_of
+
+
+@@ -25,6 +25,7 @@ def test_roundtrip_compression_with_file
+ ) == uncompressed_data
+
+
++@settings(deadline=None)
+ @given(
+ chunk_size=integers(min_value=1, max_value=2**12),
+ mode=sampled_from(list(brotli.BrotliEncoderMode)),
+@@ -62,6 +63,7 @@ def test_streaming_compression(one_compr
+ assert decompressed == f.read()
+
+
++@settings(deadline=None)
+ @given(
+ chunk_size=integers(min_value=1, max_value=2**12),
+ mode=sampled_from(list(brotli.BrotliEncoderMode)),