several backports from deps

This commit is contained in:
Andreas Billmeier 2018-11-01 20:30:28 +01:00
parent 110846f6da
commit d9751bbdba
35 changed files with 822 additions and 0 deletions

View File

@ -0,0 +1,53 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
inherit distutils-r1 vcs-snapshot
DESCRIPTION="The AWS SDK for Python"
HOMEPAGE="https://github.com/boto/boto3"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc test"
if [[ "${PV}" == "9999" ]]; then
EGIT_REPO_URI="https://github.com/boto/boto3"
inherit git-r3
else
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
fi
RDEPEND="
>=dev-python/botocore-1.12.4[${PYTHON_USEDEP}]
dev-python/jmespath[${PYTHON_USEDEP}]
dev-python/s3transfer[${PYTHON_USEDEP}]
"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
doc? (
dev-python/guzzle_sphinx_theme[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
)
test? (
${RDEPEND}
dev-python/mock[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
)
"
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( docs/build/html/. )
distutils-r1_python_install_all
}

View File

@ -0,0 +1,3 @@
AUX 1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch 1056 BLAKE2B ecdf805cd61e337d4152d56952aeb8b78bfdd871b4da060d025ca4e3f974b3b7a907eee71ce6de1bc6cff8130fa81391aeaa2c5537b1baf159ce23500908a5f4 SHA512 c3be1a6457990168c759f03b24de8f78242b9c06f189553e416ce75fee6a77dce68967a551dfd83e1be096db9baeca019b75526c4886c672eca35282e307f229
DIST botocore-1.12.35.tar.gz 4891973 BLAKE2B cce234fb4a33bf5be88d14fcc0b30acc2f13fb422f7a2af9bfcf064b91921115382713f1f371487470de7965ffba2209f578669bccf2af9d6b94b1af5223556c SHA512 9ca6d766a7ef8e32859b33a82fa99457d165ffd1a5b0e1cdc01ca9c28377e6374188e9661fd3d96e94dbab712fe4da3cbda8f9a757cfb11a8efc8e29ca3c007c
EBUILD botocore-1.12.35.ebuild 1494 BLAKE2B 36263e1b3bc056f6a5fc0034e3373d30920976a8e54113bb6f7b3fdc238f6acd6acb76f4026cd5f8302aa6d4ba50191d72883896282f1a2f0b55312cd389ce4c SHA512 ead62975b9cc2ef72e396994d62eb2a3e1c807d6d6a69b82cd07ea7db6b31bb5e88ea4af1fc9e4306c8f5fe84c2469501cf04e790c85ea5067940715049def57

View File

@ -0,0 +1,58 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
inherit distutils-r1
DESCRIPTION="Low-level, data-driven core of boto 3."
HOMEPAGE="https://github.com/boto/botocore"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc test"
if [[ "${PV}" == "9999" ]]; then
EGIT_REPO_URI="https://github.com/boto/botocore"
inherit git-r3
else
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
fi
RDEPEND="
dev-python/docutils[${PYTHON_USEDEP}]
dev-python/jmespath[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
doc? (
dev-python/guzzle_sphinx_theme[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
)
test? (
${RDEPEND}
dev-python/mock[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
dev-python/jsonschema[${PYTHON_USEDEP}]
)
"
PATCHES=( "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch" )
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
PYTHONPATH="${BUILD_DIR}/lib" nosetests -v tests/unit || die "unit tests failed under ${EPYTHON}"
PYTHONPATH="${BUILD_DIR}/lib" nosetests -v tests/functional || die "functional tests failed under ${EPYTHON}"
}
python_install_all() {
use doc && local HTML_DOCS=( docs/build/html/. )
distutils-r1_python_install_all
}

View File

@ -0,0 +1,32 @@
From 78077a5e80c9ad5f909037a48100481ddfedc6b2 Mon Sep 17 00:00:00 2001
From: Andrey Utkin <andrey_utkin@gentoo.org>
Date: Wed, 13 Dec 2017 01:50:03 +0000
Subject: [PATCH] tests: pass all env vars to cmd-runner
cmd-runner was started with no environment variables inherited.
This breaks tests when run with custom PYTHONPATH, which is useful for
testing botocore while not being installed in standard locations.
One case when this is important is performing tests before installing
the package in Gentoo Linux.
Link: https://bugs.gentoo.org/640726
---
tests/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/__init__.py b/tests/__init__.py
index 74a2e4de..fa0b819b 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -145,6 +145,7 @@ class BaseClientDriverTest(unittest.TestCase):
if self.INJECT_DUMMY_CREDS:
env = {'AWS_ACCESS_KEY_ID': 'foo',
'AWS_SECRET_ACCESS_KEY': 'bar'}
+ env.update(os.environ)
self.driver.start(env=env)
def cmd(self, *args):
--
2.15.1

View File

@ -0,0 +1,3 @@
AUX certifi-2018.4.16-use-system-cacerts.patch 340 BLAKE2B 42278c6b40ef6daef71a2ef3da75baf78833906c1cd018757b0b45d8ca623cbb5de15e5d5cfa444eb360738b368ad2111bb5594beaeb910275c65267b7532a34 SHA512 8c0b36be0ce23132fe739be4a173f537f4f8870fe0f5e2c98add13e94c0c23490cd0aac30e289193820790eb8580770e178e32b9f16b28255fd95565d6015faa
DIST certifi-2018.10.15.tar.gz 145887 BLAKE2B 695b4236d67022f12639850fdcd169570330f9dd59aee165a39143d5dc5867b8685859bc48c8af07d41b7124970748ceb97cf1f7557563865e6b3293f668393b SHA512 3324ae6c4b99dda6f48aa9f0918fe045a19b19b26fcfdcca4be93ec967b9e4112d863c982686837b327f1663e308250d56ea337caeeeeb96579e08b20fca92df
EBUILD certifi-2018.10.15.ebuild 1433 BLAKE2B 30331bc3f24f66773fdb07ec7a267423cf59f5e0c231ce85114db5c702abe5dc8a1bc4973fcd12b50cd6e464f8984aa28953011cd3c99f0316b5e0aa0a1e0a5b SHA512 765e1b77b73d6c62402a2acf27e3c598e9586285226d5d80e0b65e256eb95677a8def99aa7e7e347dac71f18797c56c41da82eae3072ea91fdbbde6709247295

View File

@ -0,0 +1,43 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 )
inherit distutils-r1 prefix readme.gentoo-r1 versionator
DESCRIPTION="Python package for providing Mozilla's CA Bundle"
HOMEPAGE="http://certifi.io/ https://pypi.org/project/certifi"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND="app-misc/ca-certificates"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
# Do not drop this patch -- this will affect system's security
PATCHES=( "${FILESDIR}"/certifi-2018.4.16-use-system-cacerts.patch )
python_prepare_all() {
distutils-r1_python_prepare_all
eprefixify certifi/core.py
}
python_install_all() {
distutils-r1_python_install_all
local DOC_CONTENTS="
In Gentoo, we don't use certifi's bundled CA certificates.
Instead we remove bundled cacert.pem and patch certifi
to return system's CA certificates.
"
readme.gentoo_create_doc
# Precaution -- nothing should use bundled CA certificates
find "${D}" -name 'cacert.pem' -delete || die "Failed to delete bundled CA certificates"
}

View File

@ -0,0 +1,15 @@
Use system's CA certificate store
--- a/certifi/core.py
+++ b/certifi/core.py
@@ -19,9 +19,7 @@ class DeprecatedBundleWarning(DeprecationWarning):
def where():
- f = os.path.dirname(__file__)
-
- return os.path.join(f, 'cacert.pem')
+ return "@GENTOO_PORTAGE_EPREFIX@/etc/ssl/certs/ca-certificates.crt"
def old_where():

View File

@ -0,0 +1,2 @@
DIST coverage-4.5.1.tar.gz 379675 BLAKE2B a3dd18b6c6512a2880f48e685c15eed33589d7d46ffaddedd69dad88b8baa383e1661e1cd232e44f466512e292f82638ee2fd198de01dbd1324cb01857b986cf SHA512 82742a572549400778cad99057b1ced4c36b61e917983148eccc86bfa6340de8cfefc4f743e79ff876b641e0b9d21307dd6bde78638a6b20dd8ad215068dda25
EBUILD coverage-4.5.1.ebuild 1245 BLAKE2B 7261754c2561133e867b651e780ad794543e52c8c9c3a7e68924877ef293ca13a5cc48ae4fbd57ba9542161d7bc3a5438769710287eead2950cc2f4e362e2316 SHA512 e683690a3ad77aff3b4ca2d92aeea4c0b531f995f41958fe4c21eb83a8515552701193d222f0c02a4d07feee0c7524a061c72ee69dd032ca121552f2b95a88c4

View File

@ -0,0 +1,44 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1
DESCRIPTION="Code coverage measurement for Python"
HOMEPAGE="https://coverage.readthedocs.io/en/latest/ https://pypi.org/project/coverage/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="test"
RDEPEND=""
DEPEND="
>=dev-python/setuptools-18.4[${PYTHON_USEDEP}]
test? (
dev-python/PyContracts[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
)
"
python_compile() {
if [[ ${EPYTHON} == python2.7 ]]; then
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
export CFLAGS
fi
distutils-r1_python_compile
}
python_test() {
cd "${BUILD_DIR}"/lib || die
[[ "${PYTHON}" =~ pypy ]] && export COVERAGE_NO_EXTENSION=no
${PYTHON} "${S}"/igor.py test_with_tracer py || die
${PYTHON} "${S}"/igor.py test_with_tracer c || die
}

View File

@ -0,0 +1,2 @@
DIST distro-1.3.0.tar.gz 48067 BLAKE2B b8dc48dc82e96c674c5fedf2f55167fcbabacde59954ce978085f0a05e5184bf8c323c76208f2ebe0a2cfb6ac41ce0351774ba6ba02dd13b22a7506ce3e5cf58 SHA512 5a3e363b7dbfb5f70967937d04b566e5c8aea10b6f3b9be7485e6f49130766ec5480ce1c1c14ec759e38b2488ffa697478246e53be72ad277cf3bebac7dde741
EBUILD distro-1.3.0.ebuild 584 BLAKE2B a8891d81d850a655e87f3217bc89f7fa8b9f0a49e84f416ab46e050d8d87334a59d4ac3621b29a844ed9dfdcec6cb69a7262d038d0aa4193f0c9174050e0d4d6 SHA512 d201207a85c964cf3e9f611ca57fbf7eab21301d78db413077e3f60ca072633a4c78583584fd740d0a4b186890f409df994913b3056ae535b8aee6ab8a8bf8c3

View File

@ -0,0 +1,25 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
inherit distutils-r1
DESCRIPTION="Reliable machine-readable Linux distribution information for Python"
HOMEPAGE="http://distro.readthedocs.io/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="Apache-2.0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
RESTRICT="test" # incomplete test resources
python_test() {
py.test || die
}

View File

@ -0,0 +1,2 @@
DIST future-0.17.1.tar.gz 829119 BLAKE2B 95210b5128d25d6c189cd38bced873f096802690e8fab5f4591c08fa913c41dc255e24af1931cad91d872a286f690f47bf6e0aa365e2f6508b03b0d305779c26 SHA512 50094c44db81afbfd37ee25e1710ed11ecb2c2d64ad076fb62a2688dd36a9696ab26b0d7989bf1ecb10da251961a0ee6bb37c4dbd115f70384cd8c9a675d0b2d
EBUILD future-0.17.1.ebuild 614 BLAKE2B 40f614b47a93320680e6d44e8921cc9e615addd818662b9a03ed87ee8affec386445365c8e9253afe3b7881d451d3badbf1a9ba6ec86455a47beb3fd982b723f SHA512 2f527a66bc8efdc8d5ad0e191af6c8012a96bec239335628ee60ea7479d639f30d3b5de7f5096ef20002f4995becc37d19e7c7895cf41f1f241fd0658ec786b5

View File

@ -0,0 +1,27 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
inherit distutils-r1
DESCRIPTION="Easy, clean, reliable Python 2/3 compatibility"
HOMEPAGE="http://python-future.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 ~sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
IUSE="test"
DEPEND="
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)
"
python_test() {
py.test -v || die "Tests failed under ${EPYTHON}"
}

View File

@ -0,0 +1,2 @@
DIST idna-ssl-1.1.0.tar.gz 3377 BLAKE2B 4a3baee5c976bdde4092eb3a980e555a72fb74395d3bc673ccd6e986e003b696cabdeb41061ad9b5f8da62074c034e4a07298fa993d5fff185f723ff4cb5f432 SHA512 f9db74cecabbbfddfd1817bbd8434ef2aafeea433c3eefff3f94c7e994da40e3f315fcda527f3a0c3743028f26bbc934f1dd21f94134123c3271975d0527cd35
EBUILD idna-ssl-1.1.0.ebuild 530 BLAKE2B 0c2c36dcd0f24ccbf48346a79dd417f396d36d75b989884f381de58bdebfdd3d00770ba6fa0b1d7c3c4a8c4dfaec2e1a926e782a4bb1b76cca6c31cb496ba809 SHA512 a6f3f990b2673a5637c9e5e820f033c94bdf3ee067badb26bcab1b7da2347ba7052daca8142eb0fa0b94a9982d8bca24409e32f73ea2f88f3b4d36aa420f86f4

View File

@ -0,0 +1,20 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{4,5,6} )
inherit distutils-r1
DESCRIPTION="Patch ssl.match_hostname for Unicode(idna) domains support"
HOMEPAGE="https://github.com/aio-libs/idna-ssl https://pypi.org/project/idna_ssl/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="dev-python/idna[${PYTHON_USEDEP}]"

View File

@ -0,0 +1,2 @@
DIST ifaddr-0.1.4.zip 13222 BLAKE2B e4f71884af39b32472ae76d8876886600ee8068b6b25b828ea344920505a1db3977c60b13b0ff9a87a1f040619c3f4d75b4914d74a961cb2d12c0446e2003438 SHA512 5b080d8f328f7a974644e15929850ba93b9232cee545740d89e4d63e982e351287504befef365834bfb3f4c5f25dc99f4a4d76753405658ae197590e2ce94929
EBUILD ifaddr-0.1.4.ebuild 638 BLAKE2B de33dad9397f5078773188d6c956f41fd9ae948d01a19efb5e18c580ef94955fd8535fc48053d67d6b21ae07dd164f9b9bff0128f6cf22938633d0863cc0580d SHA512 c6c8c8860f4ce25571083a5a3b0a354e4ae53246b2b096b8c9fcf5ae6aad8015ebb6c01ebe26f8c2f6f60933b1434a8a821b07370903c26ec310975e5ac336fd

View File

@ -0,0 +1,27 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
inherit distutils-r1
DESCRIPTION="Enumerates all IP addresses on all network adapters of the system."
HOMEPAGE="https://github.com/pydron/ifaddr"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 ~sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
IUSE="test"
DEPEND="
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)
"
python_test() {
py.test -v || die "Tests failed under ${EPYTHON}"
}

View File

@ -0,0 +1,2 @@
DIST jsonrpc-async-0.6.tar.gz 4160 BLAKE2B e471c819adb89ab79fd6b0fd47faa823e6729f5812d3fbac99118109854ec5a6fada9805d8cca80f8efe6c084ed9c0914af390254d7edaa86b475b1924a600a1 SHA512 dedfcbb707b39c86cb420f97f645de03de61fc38770e60984f94d064aa4fdc0cee76193620f45944ce46c3d5d17efaa6e9a6640f1c46e29f7b904bfa7c5d6976
EBUILD jsonrpc-async-0.6.ebuild 622 BLAKE2B 3c608563ebced8d85f7cc1b69c9700ca3cce1bf41310c2f012620822bcb22741b2d60cc7662cad623db637432dd762283acc35f46903f5965e841c841f2a993f SHA512 5c7bce6cfad154399fea60534dbad260629aeea19036cbbc22272ca4cb836442f465b3ad997a3d9b8086df86a6d2fa8ea74f037193c09aac180ea666a06b6ae0

View File

@ -0,0 +1,24 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
inherit distutils-r1
DESCRIPTION="a compact JSON-RPC client library for asyncio"
HOMEPAGE="https://github.com/armills/jsonrpc-async"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
python_test() {
unset PYTHONPATH
nosetests -v || die "Tests failed"
}

View File

@ -0,0 +1,29 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=(python3_{4,5,6})
inherit distutils-r1
DESCRIPTION="Discover devices on your local network"
HOMEPAGE="https://github.com/home-assistant/netdisco"
SRC_URI="https://github.com/home-assistant/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
${PYTHON_DEPS}
"
DEPEND="
>=dev-python/requests-2.0[${PYTHON_USEDEP}]
>=dev-python/zeroconf-0.19.1[${PYTHON_USEDEP}]
${RDEPEND}
"
DOCS="README.md"

View File

@ -0,0 +1,2 @@
DIST pycryptodome-3.7.0.tar.gz 7180132 BLAKE2B 1befc6704e50bf74b277cc76ac73518e4a25ab8fe811ee8347eaaf74d5534b5c2bdc9821b36e9658d83d88d096b73a31cb5b93d245ae541402a20140220741b6 SHA512 8a25ad339901cf0823f8035380f514de1b86a2468ba303b6c5c3f27cc0bea7cb0ea6d7e911e57b1e5a35d3089b0290f4dda7670525ce33b7e8dfb6b3277e1ecc
EBUILD pycryptodome-3.7.0.ebuild 918 BLAKE2B 8e8738c09835e83d6da57c46b33256f2882123f5873864e39bbe6db981101bbc1874cf27313f74d4efd3dc02218312cdc54319bc3bb153dff0aa19e306f43ac0 SHA512 d742c1c1e7970b8ddb35c7636cdd2cad9beaee0af5180aa8d7d5136485ac56408901b99b37e1ccb43785735d98ce6f18de23f808a2912bbddc747cf6802d4a5e

View File

@ -0,0 +1,28 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1
DESCRIPTION="A self-contained cryptographic library for Python"
HOMEPAGE="https://www.pycryptodome.org https://github.com/Legrandin/pycryptodome https://pypi.org/project/pycryptodome/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD-2 Unlicense"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND="dev-libs/gmp:0
virtual/python-cffi[${PYTHON_USEDEP}]
!dev-python/pycrypto"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
python_test() {
esetup.py test
}

View File

@ -0,0 +1,2 @@
DIST ruamel-yaml-0.15.72.tar.gz 389496 BLAKE2B 762351e54a13ac575bc488de83c1cf94e84284abd40482992470cf6bdc7dd146e0df841eb37639ecd44e89acef6a1fdb5155c2e7a92bd06dc705b6737bd77cf0 SHA512 52e05bb047b9fa5789ca344a25a9877e9f88c92e8fba61fc4cf5c0d58c88d91a9879eb066f4ad2f7374e6bc1b8ddc37e2552b839079563731129d1218ae54e58
EBUILD ruamel-yaml-0.15.72.ebuild 1086 BLAKE2B 875b8fc3a7c9a573ce23a1577edd3dbdc700fc641bb875a1595e2c32db2ba71188559e33310c8c0c965011cb001d60e0cc667ccab17d775cad0f75e1372cba4f SHA512 0c1867ea6d69d54ab68d98d075ccb3edcd5786edd7d30a403b3f6fdf689d776443daec973b7699924d80405e0c87abc2aac4783ec86037b319b1a7d219240ec1

View File

@ -0,0 +1,44 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{4,5,6} )
inherit distutils-r1 vcs-snapshot
DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation"
HOMEPAGE="https://pypi.org/project/ruamel.yaml/ https://bitbucket.org/ruamel/yaml"
MY_PN="${PN//-/.}"
SRC_URI="https://bitbucket.org/${MY_PN/.//}/get/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64"
IUSE="test"
RDEPEND="
${PYTHON_DEPS}
"
DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/flake8[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}]
)
"
python_install() {
distutils-r1_python_install --single-version-externally-managed
find "${ED}" -name '*.pth' -delete || die
}
python_test() {
# This file produced by setup.py breaks finding system-wide installed
# ruamel.std.pathlib due to shared namespace
rm "${BUILD_DIR}/lib/ruamel/__init__.py" || die
py.test -v _test/test_*.py || die
}

View File

@ -0,0 +1,2 @@
DIST SQLAlchemy-1.2.11.tar.gz 5611782 BLAKE2B 2f6546bbab1bf250033120971ba436bcf93edfd902b2c7b869826c8093eda6df215bac370e39623fda0204581b147cb39efd18b0778b76f5b6a2944e779c9c37 SHA512 dfe60cdf4923239d9ca16ee2ee8618ebe3fe2553c35d393f27c51aec16bcba3a6692e7f045e8206a41ad7cfbf71380d607cb27cbc9a6320faedbcd3a37517604
EBUILD sqlalchemy-1.2.11.ebuild 1756 BLAKE2B 541a095699b0b7af77811a8bb575c7c66745ab920482dece60a6d51e63959837627e7460973d4cfc5afb4de962d4dfd5daf3df34407087bd3aee153edac7bd5b SHA512 e126209bd8c6c60e99da68f06131ad812681f56ed41aad8912884f1ecf60ec8803e7cf2309650338e3aebeb3cf7e8f840a54b096a4db8783abb5955244353fef

View File

@ -0,0 +1,67 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
PYTHON_REQ_USE="sqlite?"
inherit distutils-r1 eutils flag-o-matic
MY_PN="SQLAlchemy"
MY_P="${MY_PN}-${PV/_beta/b}"
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
IUSE="doc examples +sqlite test"
REQUIRED_USE="test? ( sqlite )"
RDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="
${RDEPEND}
test? (
<dev-python/pluggy-0.7s[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
)"
S="${WORKDIR}/${MY_P}"
python_prepare_all() {
# Disable tests hardcoding function call counts specific to Python versions.
rm -r test/aaa_profiling || die
distutils-r1_python_prepare_all
}
python_compile() {
if ! python_is_python3; then
local CFLAGS=${CFLAGS}
append-cflags -fno-strict-aliasing
fi
distutils-r1_python_compile
}
python_test() {
pytest -vv test || die "Testsuite failed under ${EPYTHON}"
}
python_install_all() {
use doc && HTML_DOCS=( doc/. )
use examples && dodoc -r examples
distutils-r1_python_install_all
}
pkg_postinst() {
optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python
optfeature "mssql support" dev-python/pymssql
optfeature "postgresql support" dev-python/psycopg:2
}

View File

@ -0,0 +1,3 @@
AUX urllib3-1.23-tornado5.patch 2878 BLAKE2B 7d64d012de5f0d83043ca5c6262d4e395faa888b582cc2c094c82c90aad3bb7e3e7bf835c002bcc72339974d06b5b211d22571a0470b44e453024626e47ee507 SHA512 c4c1facce9e90a8c8b845e4ca9b5c1b4bd1400fa9b2841172bd8a721ed96fac36cdead6014bf33ec841237f7cd4cb0994283f1a62840e22f829f9f0234d1cfde
DIST urllib3-1.24.tar.gz 229200 BLAKE2B 7a1943ce14b9fd88b7b8a86a1ecbd9fd1baa2f7a5eedc64c7989062eef192467e722db480f9667c9390b289a1f3f999c7a6e554f7d013e958d9e60753532e74b SHA512 557e3fa616f064e4447faf9cbbcc9ca14c29077e70871d8bfa7d7271acc3ae012bf4c0dae76ddc8760195c31da90b204168dbf5c99bcf5a1b72158d460a3bcdf
EBUILD urllib3-1.24.ebuild 1779 BLAKE2B 5dff6de83e055f2adc07c5e291387abc817ac40aa68fade2a8095973fbb8fe82cc9065dfbbabc8c296e6601d486ae0c1cf93388872e2f9f54373b0ba585fb3a6 SHA512 d9ecb43626d9cb0a82f2726013bdc63ec6e30ffcb42aa1ce8ec45dae1671dc6bfed76fc254aa0a44cf426c42c8e880376cee79722e1c25fe45e22ff25d29a044

View File

@ -0,0 +1,72 @@
From f8c3e96df731eccda202e0dc909f0a51cdc41267 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Sat, 14 Jul 2018 12:21:50 +0200
Subject: [PATCH] dummyserver: Update for tornado-5 API changes
Tornado 5 has apparently removed support for multiple IOLoops,
and appropriately removed the io_loop parameter to the server class
in favor of using IOLoop.current(). Update the tests to use the latter.
The code remains compatible with tornado-4.
---
dummyserver/server.py | 9 +++++----
dummyserver/testcase.py | 4 ++--
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/dummyserver/server.py b/dummyserver/server.py
index e1745b7..3ba5124 100755
--- a/dummyserver/server.py
+++ b/dummyserver/server.py
@@ -226,15 +226,16 @@ def bind_sockets(port, address=None, family=socket.AF_UNSPEC, backlog=128,
def run_tornado_app(app, io_loop, certs, scheme, host):
+ assert io_loop == tornado.ioloop.IOLoop.current()
+
# We can't use fromtimestamp(0) because of CPython issue 29097, so we'll
# just construct the datetime object directly.
app.last_req = datetime(1970, 1, 1)
if scheme == 'https':
- http_server = tornado.httpserver.HTTPServer(app, ssl_options=certs,
- io_loop=io_loop)
+ http_server = tornado.httpserver.HTTPServer(app, ssl_options=certs)
else:
- http_server = tornado.httpserver.HTTPServer(app, io_loop=io_loop)
+ http_server = tornado.httpserver.HTTPServer(app)
sockets = bind_sockets(None, address=host)
port = sockets[0].getsockname()[1]
@@ -268,7 +269,7 @@ if __name__ == '__main__':
from .testcase import TestingApp
host = '127.0.0.1'
- io_loop = tornado.ioloop.IOLoop()
+ io_loop = tornado.ioloop.IOLoop.current()
app = tornado.web.Application([(r".*", TestingApp)])
server, port = run_tornado_app(app, io_loop, None,
'http', host)
diff --git a/dummyserver/testcase.py b/dummyserver/testcase.py
index f73f028..d9ff8cf 100644
--- a/dummyserver/testcase.py
+++ b/dummyserver/testcase.py
@@ -124,7 +124,7 @@ class HTTPDummyServerTestCase(unittest.TestCase):
@classmethod
def _start_server(cls):
- cls.io_loop = ioloop.IOLoop()
+ cls.io_loop = ioloop.IOLoop.current()
app = web.Application([(r".*", TestingApp)])
cls.server, cls.port = run_tornado_app(app, cls.io_loop, cls.certs,
cls.scheme, cls.host)
@@ -170,7 +170,7 @@ class HTTPDummyProxyTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
- cls.io_loop = ioloop.IOLoop()
+ cls.io_loop = ioloop.IOLoop.current()
app = web.Application([(r'.*', TestingApp)])
cls.http_server, cls.http_port = run_tornado_app(
--
2.18.0

View File

@ -0,0 +1,67 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
PYTHON_REQ_USE="ssl(+)"
inherit distutils-r1
DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more"
HOMEPAGE="https://github.com/shazow/urllib3"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="doc test"
#RESTRICT="test"
RDEPEND="
>=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}]
!~dev-python/PySocks-1.5.7[${PYTHON_USEDEP}]
<dev-python/PySocks-2.0[${PYTHON_USEDEP}]
dev-python/certifi[${PYTHON_USEDEP}]
>=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}]
>=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
>=dev-python/idna-2.0.0[${PYTHON_USEDEP}]
virtual/python-ipaddress[${PYTHON_USEDEP}]
"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
>=www-servers/tornado-4.2.1[$(python_gen_usedep 'python*')]
dev-python/pytest[${PYTHON_USEDEP}]
)
doc? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
)
"
# Testsuite written requiring mock to be installed under all Cpythons
python_prepare_all() {
# skip appengine tests
rm -r test/appengine || die
distutils-r1_python_prepare_all
}
python_compile_all() {
use doc && emake -C docs SPHINXOPTS= html
}
python_test() {
# FIXME: get tornado ported
if [[ ${EPYTHON} == python* ]]; then
py.test -v || die "Tests fail with ${EPYTHON}"
fi
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}

View File

@ -0,0 +1,2 @@
DIST vobject-0.9.6.1.tar.gz 216565 BLAKE2B 3097c3291337299f12d015a75509b0d3f14a1cd452f90e4445c3804d2ac8db0ea5858a3674eb688f66aaa5c048b155675fe36513a78b16714aa7bff2a0fd86b2 SHA512 499f22a1a9e60398a89d3d6fa472a0b4c9dd00b98440a4ce873da824f83cef1b0a5eb9e5051267931707a3eef00a1d3fb83ff63ffe857b403c4ac3a131f18dff
EBUILD vobject-0.9.6.1.ebuild 795 BLAKE2B bb21835ece9e9b9629267cebdfafb6e952f6ba52d5e64a6033e81f6a66f67b710f5095d8b628c077e604d61d6384d73eaa4c674360842cc413bb9b98d718bf44 SHA512 441c1974452c33de233377f7478b4c47bf38d84d9059f16626fd17239a73eb65ae1ff60bf4e42fff8c5447eeae9c413c51ab3890c6efc1fb5b08577c43530e23

View File

@ -0,0 +1,28 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
inherit distutils-r1
DESCRIPTION="Python package for parsing and generating vCard and vCalendar files"
HOMEPAGE="http://eventable.github.io/vobject/
https://pypi.org/project/vobject/
https://github.com/eventable/vobject"
SRC_URI="https://github.com/eventable/vobject/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE=""
RDEPEND=">=dev-python/python-dateutil-2.4.0[${PYTHON_USEDEP}]
dev-python/setuptools"[${PYTHON_USEDEP}]
DEPEND="${RDEPEND}"
DOCS=( ACKNOWLEDGEMENTS.txt README.md )
python_test() {
"${EPYTHON}" tests.py || die "Testing failed under ${EPYTHON}"
}

View File

@ -0,0 +1,2 @@
DIST zeroconf-0.21.3.tar.gz 32381 BLAKE2B 1cfc9bc1c41339b065397466ecf89b81c0cc08da9f11e9cae37a27544f035fe515838bba2c43344721f019e4ee72e0e5d582ef5967a6aa8db2b93e069cdae9ad SHA512 e7634d470bf382834f3c03f65797b64a8ccf8bebbf711f47186f7a57077b017bbb811d22d43d69ca016166bc547fb450ac889a73fd118c3ed23208a3007c8f63
EBUILD zeroconf-0.21.3.ebuild 1009 BLAKE2B c4f18f638427dd1b1e1f93df3c810e8dbfd93985ce47f3cf84f36af380151718a774f5ece2f48e269f73a44ede669aa681477bf8fbe615ae836ad47a846ae742 SHA512 e1263026da74c9b0e07952434f9178a08d16c1ca0c571c04db3ee75ef6bd0b6f715fbd2e6d5031e2e7da3defa19d1912e98018be1d92cef802fd4b72e2acfb41

View File

@ -0,0 +1,44 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy pypy3 )
inherit distutils-r1
DESCRIPTION="Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)"
HOMEPAGE="https://github.com/jstasiak/python-zeroconf https://pypi.org/project/zeroconf/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND="
dev-python/netifaces[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/ifaddr[${PYTHON_USEDEP}]
virtual/python-enum34[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
)"
# Not included
RESTRICT="test"
python_prepare_all() {
# It's virtual/python-enum34
sed \
-e "s:'enum-compat',::g" \
-i setup.py || die
distutils-r1_python_prepare_all
}
python_test() {
nosetests --verbose || die
}

View File

@ -0,0 +1,2 @@
DIST mutagen-1.41.1.tar.gz 918398 BLAKE2B e164cdca199bd1d18703604ca67722a3bb35ef6d53d8b8be1adbb0baf103ef7e45d4871929085242778726326a927771c589836a021dbd0dfdb83c0d5836f656 SHA512 d40fd74480eedc514d7b7b1d701c0403490cffc8ed3b8aa114ffe91a40c41de0daa0c54d9ad1a89ec211fab59ec271a3b1775c9efcc5661a5e1607e1ecadbea6
EBUILD mutagen-1.41.1.ebuild 1094 BLAKE2B d6ac575f10e54882617b4e850a1b0df02a223cdda5e62dacf0d643431ddec9ce8d95f64b6a0a9f7c2355f5dfe0bae0b4f045df6b848e842d7f426af9423e29c3 SHA512 b9050bd5c8689b4f35f4df91e8b782b2020b3904148265ce61ce85308fe86c310b5cc2da96b4ff8985fa7c528f2503645101a4fa408c661e144a29c05cea06e2

View File

@ -0,0 +1,42 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
inherit distutils-r1
DESCRIPTION="Audio metadata tag reader and writer implemented in pure Python"
HOMEPAGE="https://github.com/quodlibet/mutagen https://pypi.org/project/mutagen/"
SRC_URI="https://github.com/quodlibet/mutagen/releases/download/release-${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
IUSE="doc test"
# TODO: Missing support for >=dev-python/eyeD3-0.7 API
# test? ( >=dev-python/eyeD3-0.7 )
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? (
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)
"
python_compile_all() {
use doc && emake -C docs
}
python_test() {
esetup.py test --no-quality
}
python_install_all() {
local DOCS=( NEWS README.rst )
use doc && local HTML_DOCS=( docs/_build/. )
distutils-r1_python_install_all
}