new requests ebuild
authordweezil <bram.aelvoet@gmail.com>
Tue, 12 Sep 2017 19:53:55 +0000 (21:53 +0200)
committerdweezil <bram.aelvoet@gmail.com>
Tue, 12 Sep 2017 19:53:55 +0000 (21:53 +0200)
dev-python/requests/Manifest [new file with mode: 0644]
dev-python/requests/requests-2.18.4.ebuild [new file with mode: 0644]

diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest
new file mode 100644 (file)
index 0000000..c0fa19d
--- /dev/null
@@ -0,0 +1,2 @@
+DIST requests-2.18.4.tar.gz 126224 SHA256 9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e SHA512 5c59bed82ac1094194f04a973b299f7d783264d372abd7a5229295bccc6b2f7a9f082ee4b0dff348e9c22cf68ddbd7cb67f60fd0b7d9eda41c02e40d075e9472 WHIRLPOOL ffdf4466188ef2c3545387a04b164eefdbc47d03bdd7d5114f783cd10935ba42d8f7016be40bf4c6710681d96ea37f16840a18e334b9d1d86cabd4b04ab9d6a3
+EBUILD requests-2.18.4.ebuild 1366 SHA256 98580d02369be0ad8d7427a44831b96bc2f12e7d346912735d2a425606e31ac0 SHA512 0586ad3ff45bcad12835ecba02fb3c76104ac6502c563d7f7ae762806cc4a37fff21deec0c73e727b83611f823a32dc23206cfc19e86fccc03d562378f7d4f57 WHIRLPOOL 611f26999146d567477f999b12afa0fdf9fd221b9998210db0dc8b18c5cd119c82a4530a9150df38ba5305d8a9d8128a941bc6fbe3d4cae33f31a2b7d13d789a
diff --git a/dev-python/requests/requests-2.18.4.ebuild b/dev-python/requests/requests-2.18.4.ebuild
new file mode 100644 (file)
index 0000000..c6e03ab
--- /dev/null
@@ -0,0 +1,47 @@
+# 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} pypy{,3} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="HTTP library for human beings"
+HOMEPAGE="http://python-requests.org/"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="socks5 +ssl test"
+
+RDEPEND="
+       >=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}]
+       >=dev-python/chardet-3.0.2[${PYTHON_USEDEP}]
+       >=dev-python/idna-2.5[${PYTHON_USEDEP}]
+       <dev-python/idna-2.7[${PYTHON_USEDEP}]
+       >=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}]
+       socks5? ( >=dev-python/PySocks-1.5.6[${PYTHON_USEDEP}] )
+       ssl? (
+                >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}]
+                >=dev-python/pyopenssl-0.14[$(python_gen_usedep 'python*' pypy)]
+       )
+"
+
+DEPEND="${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+"
+# tests connect to various remote sites
+RESTRICT="test"
+#      test? (
+#              dev-python/pytest[${PYTHON_USEDEP}]
+#              dev-python/pytest-httpbin[${PYTHON_USEDEP}]
+#              dev-python/pytest-mock[${PYTHON_USEDEP}]
+#              dev-python/pytest-xdist[${PYTHON_USEDEP}]
+#      )
+
+python_test() {
+       py.test -v --boxed || die
+}