summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2020-01-22 23:26:52 +0100
committerLouis Sautier <sbraz@gentoo.org>2020-01-22 23:34:25 +0100
commit8f101d5664626cd3bcaf43bd53a0fe4d14fbf4c5 (patch)
tree496a54b4443546e79a25907b9970bbb113e605f9 /dev-python/plyvel
parentgui-apps/swayidle: 1.6 bump (diff)
downloadgentoo-8f101d5664626cd3bcaf43bd53a0fe4d14fbf4c5.tar.gz
gentoo-8f101d5664626cd3bcaf43bd53a0fe4d14fbf4c5.tar.bz2
gentoo-8f101d5664626cd3bcaf43bd53a0fe4d14fbf4c5.zip
dev-python/plyvel: bump to 1.2.0, add Python 3.8 compat
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-python/plyvel')
-rw-r--r--dev-python/plyvel/Manifest1
-rw-r--r--dev-python/plyvel/plyvel-1.2.0.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-python/plyvel/Manifest b/dev-python/plyvel/Manifest
index f4e8b4ed2b51..200308edd25c 100644
--- a/dev-python/plyvel/Manifest
+++ b/dev-python/plyvel/Manifest
@@ -1,2 +1,3 @@
DIST plyvel-1.0.5.tar.gz 143728 BLAKE2B 2eac687e6901381b62df5278abe00684c8e5a9ac162596a1a1a0e620536155b5e5c0ba0ab9bb32c1d3a6467d997cfdf530e9275024f8caba3323728f3f3aba67 SHA512 d2a7fe9d49b377135ece03292f366423e9550d3440689a99246d8c5ddc38e474c2b05c709655c6bf74a1d04f742a23dfb8841b51698c2adb062418577b28c4b4
DIST plyvel-1.1.0.tar.gz 143970 BLAKE2B 980c8117f39c704abaf1733bfabb6816aa84e5e449ed37368038a7d6cd4cbbbf832319bf149ec6ae7cca5074984427df08afc50e033451d3d97ddafd210d91e0 SHA512 4d9b20f7e047d75af14d530519b4360194a18aa423a57ac4596441e47528bbc9f8e3ff763dd91da4c115cb1e4a6f34f01bbd47f4be49be110b2f6e3c7b8bdb3a
+DIST plyvel-1.2.0.tar.gz 145528 BLAKE2B 3a1604b536e462b3eccb7c8294c607828b8f41f3ead65c74fd200d3bb4179765d63f57508cb3bfaee1c4c57ecda7b986afe9416714ae74ed9ad35a9247397c98 SHA512 00b3424e248d1ed17f6443c9862c9f35c94ad76707df5adfe625d7a387620252ff71b3e1f7e903dda1c5cfcd53cb23883c1049e31df541dfe566b8e849c0a96d
diff --git a/dev-python/plyvel/plyvel-1.2.0.ebuild b/dev-python/plyvel/plyvel-1.2.0.ebuild
new file mode 100644
index 000000000000..c10e32908265
--- /dev/null
+++ b/dev-python/plyvel/plyvel-1.2.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python interface to LevelDB"
+HOMEPAGE="https://github.com/wbolster/plyvel"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND=">=dev-libs/leveldb-1.20:="
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+"
+distutils_enable_sphinx doc
+
+python_test() {
+ # We need to copy the extension to the package folder
+ local ext="$(ls "${BUILD_DIR}/lib/${PN}/"*.so | head -n1 || die)"
+ ln -s "${ext}" "${PN}" || die
+ pytest -vv || die "tests failed with ${EPYTHON}"
+ rm "${PN}/$(basename "${ext}")" || die
+}