1 |
commit: 94b9710213ff4cc9565cedd6a13547c73eefdc57 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 8 02:31:02 2022 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 8 02:31:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94b97102 |
7 |
|
8 |
dev-python/plyvel: add 1.4.0 |
9 |
|
10 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
11 |
|
12 |
dev-python/plyvel/Manifest | 1 + |
13 |
dev-python/plyvel/plyvel-1.4.0.ebuild | 30 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 31 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/plyvel/Manifest b/dev-python/plyvel/Manifest |
17 |
index f55ba96c031b..71805c72135f 100644 |
18 |
--- a/dev-python/plyvel/Manifest |
19 |
+++ b/dev-python/plyvel/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST plyvel-1.3.0.tar.gz 149379 BLAKE2B 0a4fc8c3073cc8e103ab217f8e7971f04d9e6d1862dea7ce3d2634ba9646bdeebdda740fe6cb2e83aeeab513601bddef374355c4f6c9f320ce6b4b14ff2b2bf6 SHA512 fc1b84f0e98bf3edcdc2d7eda4f18313186538bb419bd297f694330e60512a6ab63e8d2fabaa825023eb5570f175ebbc22b8ae81e29603b1a94c1abb37774e99 |
22 |
+DIST plyvel-1.4.0.tar.gz 151155 BLAKE2B 1bba3fef97518d5ec291f0ebc0ebd54511678ef16e2925a1027706c917e89bbdeb20b63bcf8d1e22f8c3ef41a88695d8d64065ac9ffb9bebdc652be0f4de4eed SHA512 6532007bb103f2b0121c41ae0a23fa67dfd2c27b1472b43265f6fb5928e4f28514744887f190fb087c8640cba2e62923a1ffe14f59a70b123dc9ad7798e329d5 |
23 |
|
24 |
diff --git a/dev-python/plyvel/plyvel-1.4.0.ebuild b/dev-python/plyvel/plyvel-1.4.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..d519b1159a59 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/plyvel/plyvel-1.4.0.ebuild |
29 |
@@ -0,0 +1,30 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+# Disable PyPy3 for now because it is not stable enough: |
36 |
+# https://github.com/wbolster/plyvel/issues/140 |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Python interface to LevelDB" |
42 |
+HOMEPAGE="https://github.com/wbolster/plyvel" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+ |
49 |
+RDEPEND=">=dev-libs/leveldb-1.21:=" |
50 |
+DEPEND="${RDEPEND}" |
51 |
+ |
52 |
+distutils_enable_sphinx doc |
53 |
+distutils_enable_tests pytest |
54 |
+ |
55 |
+python_test() { |
56 |
+ # With the default import mode, plyvel is imported from ${S} which causes |
57 |
+ # a failure because it doesn't contain the compiled _plyvel extension |
58 |
+ pytest --import-mode=append -vv || die "Tests fail with ${EPYTHON}" |
59 |
+} |