diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-18 11:06:49 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-18 11:06:49 +0000 |
commit | ab3da91fb6c91a9df52fff8f991570f456fd3c7a (patch) | |
tree | e8f3bfa2c6c3d20ec3b9c352c839e23949068b6b /dev-python/requests | |
parent | 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (diff) |
gentoo resync : 18.12.2020
Diffstat (limited to 'dev-python/requests')
-rw-r--r-- | dev-python/requests/Manifest | 2 | ||||
-rw-r--r-- | dev-python/requests/requests-2.25.1.ebuild | 56 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest index 2d4d86a70292..a8c84c58d494 100644 --- a/dev-python/requests/Manifest +++ b/dev-python/requests/Manifest @@ -1,5 +1,7 @@ DIST requests-2.24.0.tar.gz 115071 BLAKE2B ae98be1d023b2a7b883e15a7a5d214ecbf482234e9de6bfc9cd06d1f04d1b57d101d41a2c6fdd07b7a6b468875463514841d2e023391ac8ae0797a2cb58b3424 SHA512 46ca8ab70eb39be8398c242404b9b3ffb6baddd5c78eaad125b55c719154eb8c7b6a737a8dc587b0cb51b3b9a074abaa8b2ff347a64d38f4f90cdba4db16a119 DIST requests-2.25.0.tar.gz 101897 BLAKE2B 5de8f4f5059915f929ebb71d8209bfefbe95bb381544ed0b6875cc01cb958e6fe8861cd8321143463da5dd872ad4ff8c828008bcd6409b41857c4d2037db3f67 SHA512 dd13ccb6bcd95bdd31a414dba67e5a0914ff172ae6f5d255849837e8e2a7e404e3c02fc3d07e5ff6dc81c12d0fe56c3b83bc62bc377dd3f504b00b97b144db74 +DIST requests-2.25.1.tar.gz 102161 BLAKE2B 1901ca3bb1eb7a6eb7689a81e01c1c23d3f359835507fda78de734162cbd8573b7640c9376cb50ed9397603d67d9a14624028573c2709086547f37993a959429 SHA512 ca6b0a257b448a999cade0ae173c29cddc9cfffb319d16fc3d051d3e1cd77161536e3cab279b3cba59c60d29d7864a9281c1fa1f689ce48d3bce2ca9f1cd8d45 EBUILD requests-2.24.0-r1.ebuild 1500 BLAKE2B 8c41580af3392d4b1d22aa3809ce970e7c6ef9f56dabab7daf1b02892e8cf116a0c5872625b1de7816201dc5650d3db2907e8514c25eb6d46799f182321350bf SHA512 1eef7754e3491548ea66ab9a7d34b6412e9c08cae2bfee0eec4ab914445f6bf32ecf07ae52b3c56f31428eeebb67ffe67702d9e3a2d25248b4853a26b2e10fad EBUILD requests-2.25.0.ebuild 1520 BLAKE2B 6f3bdac3f957e720f441bf1f3f72947930d484b7e42ee60dba208b0bdba0fad9585d04106e0450b270e34c299dfdd4c1fcbccd084b060d3696b187e5fe6f3ddd SHA512 17c356f6f4906929c2a011f29f8eb140c790729a885b34f84e6d7cc5b39604272d4fa3a54bf9d34918029e7c344269e9bcdf331a6ac2b26bf7f0869d3f4d42c4 +EBUILD requests-2.25.1.ebuild 1520 BLAKE2B 453c6e6b3384f802a63de21e33f070715faf8e0c4a165acde05c4e54c877dd79a8534d47bc24b63c3d320545c0816c3628dfecd82e3b60d1d3d981b32f22da05 SHA512 9e6286ee54dbb9c0b9fa852593b6ad66dcfba54544190c0da8ea1c9e092a3bcb3a41bf594a5068e41cfd258c6b9dad701779a9f0dcfc2eb1e1dd81f99f0f180f MISC metadata.xml 769 BLAKE2B 3b70fd8b559e10b971a7c72e4e134028300406af09445bf3d9c013cc15899f10452b493730b0af5f1ec958b81f719ae1af9be96cbf3fb5c0e3bf6f5bf1de7326 SHA512 12d72ea4ecc2ba0a58306917322a1687b73a3234b6dfa7f9ddbc4aa861daa4a56bcc6a8ea7e5da7cafdca2239f065c0f839a998de133958656b2c9a764fc30ae diff --git a/dev-python/requests/requests-2.25.1.ebuild b/dev-python/requests/requests-2.25.1.ebuild new file mode 100644 index 000000000000..ca3637585050 --- /dev/null +++ b/dev-python/requests/requests-2.25.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="HTTP library for human beings" +HOMEPAGE="https://requests.readthedocs.io/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="socks5 +ssl" + +RDEPEND=" + >=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}] + >=dev-python/chardet-3.0.2[${PYTHON_USEDEP}] + <dev-python/chardet-5[${PYTHON_USEDEP}] + >=dev-python/idna-2.5[${PYTHON_USEDEP}] + <dev-python/idna-3[${PYTHON_USEDEP}] + <dev-python/urllib3-1.27[${PYTHON_USEDEP}] + socks5? ( >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] ) + ssl? ( + >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] + ) +" + +BDEPEND=" + test? ( + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # strip tests that require some kind of network + sed -e 's:test_connect_timeout:_&:' \ + -e 's:test_total_timeout_connect:_&:' \ + -i tests/test_requests.py || die + # probably pyopenssl version dependent + sed -e 's:test_https_warnings:_&:' \ + -i tests/test_requests.py || die + # doctests rely on networking + sed -e 's:--doctest-modules::' \ + -i pytest.ini || die +} |