diff options
author | Sven Wegener <swegener@gentoo.org> | 2021-06-26 23:41:08 +0200 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2021-06-26 23:41:51 +0200 |
commit | bfa0b339d6094863dd89316d742775398880d483 (patch) | |
tree | 5a27b66274b9aaf8c804bca8eaed80928a08362c /dev-python | |
parent | dev-libs/libffi: bump up to 3.4_rc1, SOVERSION=8 (diff) | |
download | gentoo-bfa0b339d6094863dd89316d742775398880d483.tar.gz gentoo-bfa0b339d6094863dd89316d742775398880d483.tar.bz2 gentoo-bfa0b339d6094863dd89316d742775398880d483.zip |
dev-python/hiredis: Version bump to 2.0.0
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/hiredis/Manifest | 1 | ||||
-rw-r--r-- | dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch | 14 | ||||
-rw-r--r-- | dev-python/hiredis/hiredis-2.0.0.ebuild | 31 |
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/hiredis/Manifest b/dev-python/hiredis/Manifest index 3504fdc829af..5f1ab167b26f 100644 --- a/dev-python/hiredis/Manifest +++ b/dev-python/hiredis/Manifest @@ -1 +1,2 @@ DIST hiredis-1.1.0.tar.gz 54620 BLAKE2B 9991745d277e87efe836c1c8eabb2016ce401e2be52c7e1b3a154350776fae6fd3c49e3096da57231e42c57bf36ba692ce26bc993d0923b5246376d8694ad058 SHA512 ad37868376de91303c15ffe6109dc7fadb4f458efdd44b7ddc0a410937a389b8e062ab7d36b1aec3fe324ecafe6b1e5e6b92f547cbf619251dad22a28e02ee9c +DIST hiredis-2.0.0.tar.gz 75807 BLAKE2B dc7535f117c8ecfb2c924fe44a1cba2f02271c544588249de6794ce3aec27f66038ecb9f6364ca87b71f66ba13870a3be192eb79c1f360d2eb6dcb6dcae41caa SHA512 b9a313acdd00676dc046713a81bbf4336959f49f09bd2828997c23ca41259935047c657a4b6f81913715141a75fb6bbe7fc4429c7a5b0f4bc3d5de66b9cfa909 diff --git a/dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch b/dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch new file mode 100644 index 000000000000..74f14cdc00b4 --- /dev/null +++ b/dev-python/hiredis/files/hiredis-2.0.0-system-libs.patch @@ -0,0 +1,14 @@ +--- hiredis-2.0.0/setup.py ++++ hiredis-2.0.0/setup.py +@@ -11,9 +11,8 @@ + return module.__version__ + + ext = Extension("hiredis.hiredis", +- sources=sorted(glob.glob("src/*.c") + +- ["vendor/hiredis/%s.c" % src for src in ("alloc", "read", "sds")]), +- include_dirs=["vendor"]) ++ sources=sorted(glob.glob("src/*.c")), ++ libraries=["hiredis"]) + + setup( + name="hiredis", diff --git a/dev-python/hiredis/hiredis-2.0.0.ebuild b/dev-python/hiredis/hiredis-2.0.0.ebuild new file mode 100644 index 000000000000..c2881e5aae37 --- /dev/null +++ b/dev-python/hiredis/hiredis-2.0.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Python extension that wraps hiredis" +HOMEPAGE="https://github.com/redis/hiredis-py/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="system-libs" + +DEPEND="system-libs? ( dev-libs/hiredis:0/1.0.0 )" +RDEPEND="${DEPEND}" + +src_prepare() { + use system-libs && PATCHES+=( + "${FILESDIR}"/${P}-system-libs.patch + ) + default +} + +python_test() { + cd test || die + "${EPYTHON}" -m unittest reader.ReaderTest || die "tests failed" +} |