Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/fitsio/
Date: Tue, 27 Sep 2022 18:25:36
Message-Id: 1664303124.adfbdb86d437fc5df163c806d4e9859f45eedd35.arthurzam@gentoo
1 commit: adfbdb86d437fc5df163c806d4e9859f45eedd35
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 27 18:06:47 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 18:25:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adfbdb86
7
8 dev-python/fitsio: add 1.1.8
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/fitsio/Manifest | 1 +
13 dev-python/fitsio/fitsio-1.1.8.ebuild | 37 +++++++++++++++++++++++++++++++++++
14 2 files changed, 38 insertions(+)
15
16 diff --git a/dev-python/fitsio/Manifest b/dev-python/fitsio/Manifest
17 index 218062451e1a..12d49b8c982b 100644
18 --- a/dev-python/fitsio/Manifest
19 +++ b/dev-python/fitsio/Manifest
20 @@ -1 +1,2 @@
21 DIST fitsio-1.1.7.gh.tar.gz 5052055 BLAKE2B be9c632dcdd08325c5abb2cb9ed9eee6476b27ef2e7197298b269156346ecb72afc9f1d1c2e3ade045f69cde3afac5a6bf3fe5ecbce67fdfc1e6ede529ab1b32 SHA512 d6e81de08c38346050fbaa3e2fb51a496e76133bb0b04f20d816b51b7b7bf21ba37a400c3a6a7f966959223545c736ca6245427457154a4b5976b5a997e9cfcc
22 +DIST fitsio-1.1.8.gh.tar.gz 5052021 BLAKE2B fd54450ccce61a502b803e85df92821a0f64c91e6c8a535b09da6d6e68df1a0299ffc57e87b514d46f635d83dbabc15dc67a99d84fc93ca11ba052fab9472210 SHA512 8ff7c675d39c74ae821dde29ebbfaa5686a4c8e4454bf6ec4b7edce2f6a2e026aa3fac584af1647e7913748202c8c8e3d58deba9bf07253e3fe4606fd2b52c93
23
24 diff --git a/dev-python/fitsio/fitsio-1.1.8.ebuild b/dev-python/fitsio/fitsio-1.1.8.ebuild
25 new file mode 100644
26 index 000000000000..238fbca619fb
27 --- /dev/null
28 +++ b/dev-python/fitsio/fitsio-1.1.8.ebuild
29 @@ -0,0 +1,37 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Python library to read from and write to FITS files"
40 +HOMEPAGE="https://github.com/esheldon/fitsio"
41 +SRC_URI="
42 + https://github.com/esheldon/fitsio/archive/${PV}.tar.gz
43 + -> ${P}.gh.tar.gz"
44 +
45 +LICENSE="GPL-2+"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
48 +
49 +RDEPEND="
50 + >=dev-python/numpy-1.11[${PYTHON_USEDEP}]
51 + sci-libs/cfitsio:0=
52 +"
53 +BDEPEND="${RDEPEND}"
54 +
55 +src_configure() {
56 + cat >> setup.cfg <<-EOF || die
57 + [build_ext]
58 + use_system_fitsio = True
59 + EOF
60 +}
61 +
62 +python_test() {
63 + cd "${T}" || die
64 + "${EPYTHON}" -c "import fitsio; exit(fitsio.test.test())" ||
65 + die "Tests failed with ${EPYTHON}"
66 +}