From 3a64f20d5ac977f1b668de95a5c46b800ccba066 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 18 Jun 2019 08:38:27 +0200 Subject: [PATCH] dev-python/httpretty: Bump to 0.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/httpretty/Manifest | 1 + dev-python/httpretty/httpretty-0.9.6.ebuild | 43 +++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 dev-python/httpretty/httpretty-0.9.6.ebuild diff --git a/dev-python/httpretty/Manifest b/dev-python/httpretty/Manifest index 6a66df776e07..f9a8c98a04d7 100644 --- a/dev-python/httpretty/Manifest +++ b/dev-python/httpretty/Manifest @@ -1 +1,2 @@ DIST httpretty-0.8.14.tar.gz 43574 BLAKE2B 4015bb234c2fe3017a43fff6e3b51a7f015d9d133756d4326750da1ea06ce1910d91d7b47625a08ec85856d156a0d8b3b18706e582578e3d186994b8e4f55c69 SHA512 5adab6450e8360cc21bab4136f64cd11757b9f292c7e27980fe2561f3e705baf4f0211b9e6ff4ec9ba96a788a6c5b5b1d26657972b67423c9c25491927b0884b +DIST httpretty-0.9.6.tar.gz 7147633 BLAKE2B e1d02ddfce5ca987c6ef1a17723544f86a8573c2a6a26ec197072021e52015efce5064af21bfbe1ec03f3ac11c21717a80f114b5be2526b113e3bc0a608702f4 SHA512 bc1c64d34370209c732bc12dd9935600b647507ab2c8f18c85f348e9b5e853618ba39e10e5a073b35036e6cbe3db2cb7a342a721d0e4affa81fe178fd0b75d92 diff --git a/dev-python/httpretty/httpretty-0.9.6.ebuild b/dev-python/httpretty/httpretty-0.9.6.ebuild new file mode 100644 index 000000000000..f65d19098d48 --- /dev/null +++ b/dev-python/httpretty/httpretty-0.9.6.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://github.com/gabrielfalcao/httpretty" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + >=dev-python/nose-1.2[${PYTHON_USEDEP}] + >=dev-python/mock-1.0[${PYTHON_USEDEP}] + dev-python/sure[${PYTHON_USEDEP}] + dev-python/httplib2[${PYTHON_USEDEP}] + >=dev-python/requests-1.1[${PYTHON_USEDEP}] + >=www-servers/tornado-2.2[${PYTHON_USEDEP}] +)" + +python_prepare_all() { + # remove useless deps + sed -i -e '/randomly/d' -e '/rednose/d' setup.cfg || die + + distutils-r1_python_prepare_all +} + +python_test() { + nosetests -v tests || die "Tests fail with ${EPYTHON}" +} -- 2.26.2