Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytables/
Date: Wed, 29 Dec 2021 08:30:24
Message-Id: 1640766601.152b16d4448c869fca0b56d946aa4b1ebe6b1eca.mgorny@gentoo
1 commit: 152b16d4448c869fca0b56d946aa4b1ebe6b1eca
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 29 06:51:18 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 29 08:30:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=152b16d4
7
8 dev-python/pytables: Bump to 3.7.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytables/Manifest | 1 +
13 dev-python/pytables/pytables-3.7.0.ebuild | 73 +++++++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-python/pytables/Manifest b/dev-python/pytables/Manifest
17 index bb12893a62e8..0ef697796364 100644
18 --- a/dev-python/pytables/Manifest
19 +++ b/dev-python/pytables/Manifest
20 @@ -1 +1,2 @@
21 DIST tables-3.6.1.tar.gz 4641089 BLAKE2B 4ef44b1263f40babe6719bac911ab191e9cb0c58c377705b755fa83f1fba5af1d0fab10b0b45bd6af619a9dce4842a80afad8d8fbab64c3be4f35a1b3f117ee3 SHA512 7f018b70251095049bce9075be4e19f72efba9d39121a35c4521f634b1dd5b81ab6de47df3bb44ad6b8b2dbdbff4e6d0985ad1a7b2f13b44f920c0935e5830ff
22 +DIST tables-3.7.0.tar.gz 8227955 BLAKE2B 0d5b7b765375c4787f1210138e5fd02e3c0ce429ef209a3a8d4fd3bc094f68486ab6f4d0a960ce86efea6991ed691ef2a3e9e8f37a49fe91cb8d6372cadea80e SHA512 eaa368d063b5fad87e6d0f9ab6f02da0b2a3542740a52fe8c2bb58e41121495d07b6d2710ad402a28891294aa61a11238c6a7e2cf2933a1bb11391b79cf4fd13
23
24 diff --git a/dev-python/pytables/pytables-3.7.0.ebuild b/dev-python/pytables/pytables-3.7.0.ebuild
25 new file mode 100644
26 index 000000000000..dd909e6784ab
27 --- /dev/null
28 +++ b/dev-python/pytables/pytables-3.7.0.ebuild
29 @@ -0,0 +1,73 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +PYTHON_REQ_USE="threads(+)"
37 +
38 +MY_PN=tables
39 +MY_P=${MY_PN}-${PV}
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Hierarchical datasets for Python"
43 +HOMEPAGE="https://www.pytables.org/"
44 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
45 +S="${WORKDIR}/${MY_P}"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
50 +IUSE="examples test"
51 +RESTRICT="!test? ( test )"
52 +
53 +DEPEND="
54 + app-arch/bzip2:0=
55 + app-arch/lz4:0=
56 + >=app-arch/zstd-1.0.0:=
57 + >=dev-libs/c-blosc-1.11.1:0=
58 + dev-libs/lzo:2=
59 + >=dev-python/numpy-1.19[${PYTHON_USEDEP}]
60 + >=sci-libs/hdf5-1.8.4:=
61 +"
62 +RDEPEND="${DEPEND}
63 + >=dev-python/numexpr-2.6.2[${PYTHON_USEDEP}]
64 + dev-python/packaging[${PYTHON_USEDEP}]"
65 +BDEPEND="
66 + >=dev-python/cython-0.21[${PYTHON_USEDEP}]
67 + virtual/pkgconfig
68 + test? (
69 + ${RDEPEND}
70 + )
71 +"
72 +
73 +python_prepare_all() {
74 + export {BLOSC,BZIP2,LZO,HDF5}_DIR="${ESYSROOT}"/usr
75 + export PYTABLES_NO_EMBEDDED_LIBS=1
76 + export USE_PKGCONFIG=TRUE
77 +
78 + rm tables/*.c || die
79 + sed -e "s:/usr:${EPREFIX}/usr:g" \
80 + -i setup.py || die
81 + rm -r c-blosc/{blosc,internal-complibs} || die
82 + sed -i -e '/_version/ s/\\s\*/\\s\+/' setup.py || die
83 + distutils-r1_python_prepare_all
84 +}
85 +
86 +python_compile() {
87 + distutils-r1_python_compile -j1
88 +}
89 +
90 +python_test() {
91 + cd "${BUILD_DIR}"/lib* || die
92 + "${EPYTHON}" tables/tests/test_all.py -v || die
93 +}
94 +
95 +python_install_all() {
96 + distutils-r1_python_install_all
97 +
98 + if use examples; then
99 + dodoc -r contrib examples
100 + docompress -x /usr/share/doc/${PF}/{contrib,examples}
101 + fi
102 +}