diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-11-25 09:10:38 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-11-25 09:37:00 +0100 |
commit | 50fcf500d6b56d6bf4af9b1929becbcc6e320821 (patch) | |
tree | a7dc90968a0e81896c087e8a9bf75b7bd018effd /dev-python/httpretty | |
parent | dev-python/boto3: Bump to 1.16.25 (diff) | |
download | gentoo-50fcf500d6b56d6bf4af9b1929becbcc6e320821.tar.gz gentoo-50fcf500d6b56d6bf4af9b1929becbcc6e320821.tar.bz2 gentoo-50fcf500d6b56d6bf4af9b1929becbcc6e320821.zip |
dev-python/httpretty: Bump to 1.0.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/httpretty')
-rw-r--r-- | dev-python/httpretty/Manifest | 1 | ||||
-rw-r--r-- | dev-python/httpretty/httpretty-1.0.3.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/httpretty/Manifest b/dev-python/httpretty/Manifest index 942fa7ec9ec4..bad5cea5721b 100644 --- a/dev-python/httpretty/Manifest +++ b/dev-python/httpretty/Manifest @@ -1,2 +1,3 @@ DIST httpretty-0.9.6.tar.gz 7147633 BLAKE2B e1d02ddfce5ca987c6ef1a17723544f86a8573c2a6a26ec197072021e52015efce5064af21bfbe1ec03f3ac11c21717a80f114b5be2526b113e3bc0a608702f4 SHA512 bc1c64d34370209c732bc12dd9935600b647507ab2c8f18c85f348e9b5e853618ba39e10e5a073b35036e6cbe3db2cb7a342a721d0e4affa81fe178fd0b75d92 DIST httpretty-1.0.2.tar.gz 399185 BLAKE2B 033e954fccf6a351c09dac3c1585ddc65f064eca109dfd8f499fd510ea09ba3ce5198d3f4b54fb832b47425ab721ddc1b2da596b6066028bda1f0a1303cdc0ed SHA512 f9ef1c82f4fe3a31696e06228cea512664c5118b3c32910d7810d1fcf16b05d31b9b55db7bb6bd64967aadb162a2952757627439769db9117164b8248de9049c +DIST httpretty-1.0.3.tar.gz 411707 BLAKE2B b2211457c937e19f8110bc28446a2b78a8042a742341c0492589def7447e819f051d301e9d254260778f349302ccf6fc163a9f2280a55af925ae353752450320 SHA512 a6349257376c12198d0bf7923245c34f6b8a0889946ba0c2551fd3379a8d9a8e4610de81c66f945656c1879ad3fb1485f2f4148634fcc4e156b9f0a59f7dd758 diff --git a/dev-python/httpretty/httpretty-1.0.3.ebuild b/dev-python/httpretty/httpretty-1.0.3.ebuild new file mode 100644 index 000000000000..8e097d95aae1 --- /dev/null +++ b/dev-python/httpretty/httpretty-1.0.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +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 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/urllib3[${PYTHON_USEDEP}]" +# redis skipped as it requires a redis server running +DEPEND=" + test? ( + dev-python/eventlet[${PYTHON_USEDEP}] + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/httplib2[${PYTHON_USEDEP}] + >=dev-python/nose-1.2[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + >=dev-python/requests-1.1[${PYTHON_USEDEP}] + dev-python/sure[${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 + # tests requiring network access + rm tests/functional/test_passthrough.py || die + # requires running redis server + # it is skipped correctly but it causes unnecessary dep on redis-py + rm tests/functional/bugfixes/test_redis.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + nosetests -v tests || die "Tests fail with ${EPYTHON}" +} |