diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-09-30 11:19:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-09-30 11:19:18 +0100 |
commit | 62f67115b5c46134c34f88f4b1cbdacc19384c0a (patch) | |
tree | 0a76b14de203a4c23040e5665e39df8de9867745 /dev-python/paramiko | |
parent | 265dbe5dbc14c199299496c6db8fce3f76647015 (diff) |
gentoo resync : 30.09.2018
Diffstat (limited to 'dev-python/paramiko')
-rw-r--r-- | dev-python/paramiko/Manifest | 5 | ||||
-rw-r--r-- | dev-python/paramiko/files/paramiko-2.4.2-disable-server.patch | 46 | ||||
-rw-r--r-- | dev-python/paramiko/metadata.xml | 3 | ||||
-rw-r--r-- | dev-python/paramiko/paramiko-2.4.2.ebuild | 62 |
4 files changed, 115 insertions, 1 deletions
diff --git a/dev-python/paramiko/Manifest b/dev-python/paramiko/Manifest index 64f4126cd0a4..4a8821916c81 100644 --- a/dev-python/paramiko/Manifest +++ b/dev-python/paramiko/Manifest @@ -1,5 +1,8 @@ +AUX paramiko-2.4.2-disable-server.patch 1596 BLAKE2B 7e2ef1e216f34086c06d985556dde82eccfc08b835a9b336f1e54e81ddf32567872daec9dadc728bfaab8e3c4728439d704d51f9b1df5e04a64b5064f6d79bf5 SHA512 5e2f9285ffa3ece551ce929c6d50691761da6269e906355bbf79b0664a764083f7d55a9e347e2ed236a4c9a7f934d489315b68ebea984694ee9d1714416d34fd DIST paramiko-2.1.2.tar.gz 1196746 BLAKE2B c184e171fe550fc231d67473867db283b706a93aebbd13ffb2503e10d69e43b9ab712237e6698fccae13472f0cb8135b6c015381ac687c4c20d4d1cb1620ae00 SHA512 465c5381b1b0a472d2ad8e690f0916a5f51713880486c7b94cadcf85ea0a52569e18337ccfee5440869e4a0c76bd2b1bc15c414128c07326b40ecd36ea021466 DIST paramiko-2.4.1.tar.gz 285151 BLAKE2B 767c4ad11da77c5c6796165057715f318cab417c5bae72cd97b51af94ecbf233316fd4286e35b2f855027e05bcf195c869b45a87f66954bee3bb98ae9d0ef1a9 SHA512 5a580d25e7911937f228ef4a2b89b5a1efd771f576c6c68cf1c36e1abbc38adbc6ad5dc91400de7112238fcf7803f5f26c13fe10be4af8a2a86af9398da7a8de +DIST paramiko-2.4.2.tar.gz 289126 BLAKE2B 767f81a09b32762241eed6661e520e3b3a96acfe8e6e638ea7ae180a8b6866f8f4adeae0a0146d46ecbfccbe71334c5f5c14e2d049744258ca4808ac21365185 SHA512 894c2ebfcfb35a84fe74670d0eb67022a49b7bf165f31acd929045c17509d8a2be111e8319f20513b5034efd033edc6432b2ca2e7027dc7e3c6703166a96790f EBUILD paramiko-2.1.2.ebuild 1126 BLAKE2B b34574e42668a2ae2275ab09bf34207f1dcc81adf7576150060dd6d4c44b2e2682c79262861d14f85bb657d58a4e28e111c5a9701061922a2e7b235f5d269b4f SHA512 dcd0c120cf12e8d6927d772c569c92b0bd67738e6ce71fe7ef8f9bccfec9268e65f61e57f265635f129c9c1fbb8f3581c7d445251960c09c231ae6f74d2e07f6 EBUILD paramiko-2.4.1.ebuild 1511 BLAKE2B efdf6865d253e622d1d987382581fb7caa20d0bc9f144899c49b184d2b9fb78eb1d43b9cd1b159eef6e41cd26fefcc9359ce5a21cab1fb9416ae8856a9260bbe SHA512 40a35eae3c02b09bdfd30f2fa21536f96ed28d42473639b2734a04b750d4497f16cdbd7320fb023a2146473d93395c03a50b314b57620c86b1e17b8aee2cfe68 -MISC metadata.xml 1236 BLAKE2B 5b1a6c8a5694722970f07206173fd1dec4a69d0be780ab408493c5c5ac96a058cd28ffcd3308390870244792b951e8fa76430fa3b2b081902e204055aadf4b2b SHA512 5cffe7297feb05b75be333fac0259655f6992baaa04248ccdb23f82790a0a807ecf328357207507a3b35944b7062d8a1aecb2daf5353d733646bb58d7a151529 +EBUILD paramiko-2.4.2.ebuild 1665 BLAKE2B d2d432532407cb4399fbaf18ef85411658cc58993594190f6178ac2d92e8f9b7ecd460babf36facb562a0b910f29b9684ef9c11b65d4fff33182c11c727c623c SHA512 4e8f7e6f0ad6ddbf472a5241caa1bbb5f01706371993ecdaa33179c3876ae0fe9bbbab5c6d29569103a5fac71df0e9e91cf521e8af97e8e161f276f9f295dca6 +MISC metadata.xml 1306 BLAKE2B 5bf88516d7d34aa0018b00250edddcc3d7044605e59fd9c799775043f2984a071f743994712cbdc009893a01ee9cbd60df85dcd7f644f7dd33e05a426b06391b SHA512 30bbefd00271e8a61c886e638f30aae8aa751dea4ed0e023e50e31d28d528a203c36e80c8a142573a4b39c958be84eca5c7c19986c2eaa86575ad9b3779ef0d1 diff --git a/dev-python/paramiko/files/paramiko-2.4.2-disable-server.patch b/dev-python/paramiko/files/paramiko-2.4.2-disable-server.patch new file mode 100644 index 000000000000..19450cbee1bc --- /dev/null +++ b/dev-python/paramiko/files/paramiko-2.4.2-disable-server.patch @@ -0,0 +1,46 @@ +diff --git a/paramiko/transport.py b/paramiko/transport.py +index f72eebaf..ec7a1445 100644 +--- a/paramiko/transport.py ++++ b/paramiko/transport.py +@@ -110,6 +110,8 @@ from paramiko.ssh_exception import ( + from paramiko.util import retry_on_signal, ClosingContextManager, clamp_value + + ++SERVER_DISABLED_BY_GENTOO = True ++ + # for thread cleanup + _active_threads = [] + +@@ -633,6 +635,8 @@ class Transport(threading.Thread, ClosingContextManager): + `.SSHException` -- if negotiation fails (and no ``event`` was + passed in) + """ ++ if SERVER_DISABLED_BY_GENTOO: ++ raise Exception("Disabled by Gentoo for security reasons. Enable with 'server' USE flag") + if server is None: + server = ServerInterface() + self.server_mode = True +diff --git a/tests/conftest.py b/tests/conftest.py +index 2b509c5c..bb23ac74 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -4,7 +4,7 @@ import shutil + import threading + + import pytest +-from paramiko import RSAKey, SFTPServer, SFTP, Transport ++from paramiko import RSAKey, SFTPServer, SFTP, Transport, transport + + from .loop import LoopSocket + from .stub_sftp import StubServer, StubSFTPServer +@@ -15,6 +15,10 @@ from .util import _support + # 'nicer'. + + ++# We need the server component for testing ++transport.SERVER_DISABLED_BY_GENTOO = False ++ ++ + # Perform logging by default; pytest will capture and thus hide it normally, + # presenting it on error/failure. (But also allow turning it off when doing + # very pinpoint debugging - e.g. using breakpoints, so you don't want output diff --git a/dev-python/paramiko/metadata.xml b/dev-python/paramiko/metadata.xml index 054a7be7a59b..3624b8442687 100644 --- a/dev-python/paramiko/metadata.xml +++ b/dev-python/paramiko/metadata.xml @@ -21,6 +21,9 @@ are supported. SFTP client mode is now supported too. 用している所です。有名なCipherとHash処理の全てがサポートされています。SFTPクライ アントもサポートされています。 </longdescription> + <use> + <flag name="server">Enable server feature</flag> + </use> <upstream> <remote-id type="pypi">paramiko</remote-id> <remote-id type="github">paramiko/paramiko</remote-id> diff --git a/dev-python/paramiko/paramiko-2.4.2.ebuild b/dev-python/paramiko/paramiko-2.4.2.ebuild new file mode 100644 index 000000000000..fb8e47b707db --- /dev/null +++ b/dev-python/paramiko/paramiko-2.4.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="SSH2 protocol library" +HOMEPAGE="http://www.paramiko.org/ https://github.com/paramiko/paramiko/ https://pypi.org/project/paramiko/" +# pypi tarballs are missing test data +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~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 ~m68k-mint ~sparc-solaris" +IUSE="doc examples server test" + +RDEPEND=" + >=dev-python/bcrypt-3.1.3[${PYTHON_USEDEP}] + >=dev-python/cryptography-1.5[${PYTHON_USEDEP}] + >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] + >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-relaxed[${PYTHON_USEDEP}] + ) +" + +src_prepare() { + if ! use server; then + eapply "${FILESDIR}/${PN}-2.4.2-disable-server.patch" + fi + eapply_user +} + +python_test() { + py.test -v || die "Tests fail with ${EPYTHON}" +} + +python_compile_all() { + use doc && esetup.py build_sphinx -s sites/docs +} + +python_install_all() { + use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + + distutils-r1_python_install_all + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins demos/* + fi +} |