1 |
commit: fd93c95f2ff6d7c5f45d99b09db4f8680a5101cb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 10:18:52 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 10:26:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd93c95f |
7 |
|
8 |
dev-python/blosc: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/blosc/blosc-1.10.5-r1.ebuild | 44 +++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 44 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/blosc/blosc-1.10.5-r1.ebuild b/dev-python/blosc/blosc-1.10.5-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..e699cb10dabb |
18 |
--- /dev/null |
19 |
+++ b/dev-python/blosc/blosc-1.10.5-r1.ebuild |
20 |
@@ -0,0 +1,44 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_P=python-blosc-${PV} |
32 |
+DESCRIPTION="High performance compressor optimized for binary data" |
33 |
+HOMEPAGE="http://python-blosc.blosc.org" |
34 |
+SRC_URI=" |
35 |
+ https://github.com/Blosc/python-blosc/archive/v${PV}.tar.gz |
36 |
+ -> ${MY_P}.gh.tar.gz |
37 |
+" |
38 |
+S=${WORKDIR}/${MY_P} |
39 |
+ |
40 |
+SLOT="0" |
41 |
+LICENSE="MIT" |
42 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
43 |
+IUSE="test" |
44 |
+RESTRICT="!test? ( test )" |
45 |
+ |
46 |
+RDEPEND=">=dev-libs/c-blosc-1.19.0:=" |
47 |
+DEPEND="${RDEPEND}" |
48 |
+BDEPEND=" |
49 |
+ dev-python/scikit-build[${PYTHON_USEDEP}] |
50 |
+ test? ( |
51 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
52 |
+ ) |
53 |
+" |
54 |
+ |
55 |
+DOCS=( ANNOUNCE.rst README.rst RELEASE_NOTES.rst ) |
56 |
+ |
57 |
+src_configure() { |
58 |
+ export USE_SYSTEM_BLOSC=1 |
59 |
+ export BLOSC_DIR="${EPREFIX}/usr" |
60 |
+} |
61 |
+ |
62 |
+python_test() { |
63 |
+ "${EPYTHON}" -m blosc.test -v || die |
64 |
+} |