summaryrefslogtreecommitdiff
blob: 5599a2f72ad1b3f218ba5c58d99a1981f06b95ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfits/pyfits-3.1.1-r1.ebuild,v 1.1 2013/04/22 21:50:31 bicatali Exp $

EAPI=5

PYTHON_COMPAT=( python{2_5,2_6,2_7} )
inherit distutils-r1 eutils

DESCRIPTION="Provides an interface to FITS formatted files under python"
HOMEPAGE="http://www.stsci.edu/resources/software_hardware/pyfits"
SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE=""

RDEPEND="
	dev-python/numpy[${PYTHON_USEDEP}]
	dev-python/setuptools[${PYTHON_USEDEP}]
	!dev-python/astropy"
DEPEND="${RDEPEND}
	dev-python/stsci-distutils[${PYTHON_USEDEP}]
	dev-python/d2to1[${PYTHON_USEDEP}]"

PATCHES=( "${FILESDIR}"/${PN}-3.0.8-debundle_zlib.patch )

python_test() {
	cd "${BUILD_DIR}"/lib* || die
	nosetests || die
}