1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_6 )
10 DESCRIPTION="Python library to read from and write to FITS files"
11 HOMEPAGE="https://github.com/esheldon/fitsio"
12 SRC_URI="https://github.com/esheldon/fitsio/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
20 >=dev-python/numpy-1.11[${PYTHON_USEDEP}]
24 dev-python/setuptools[${PYTHON_USEDEP}]
27 PATCHES=( "${FILESDIR}"/${P}-test-failures.patch )
29 python_prepare_all() {
30 sed -e '/self.use_system_fitsio/s/False/True/' \
32 distutils-r1_python_prepare_all
36 distutils_install_for_testing
37 pushd "${TEST_DIR}"/ || die
38 ${PYTHON} -c "import fitsio; exit(fitsio.test.test())" || die
39 popd > /dev/null || die