blob: da075cc6a8b3fe816f2b9e88f16c166fe547983d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
#pkgbase=python-photutils
pkgname=('python-photutils')
#'python-photutils-doc')
pkgver=0.5
pkgrel=1
pkgdesc="Astropy Affiliated package for image photometry utilities"
arch=('i686' 'x86_64')
url="http://photutils.readthedocs.io/en/latest/"
license=('BSD')
makedepends=('cython'
'python-astropy'
'python-astropy-helpers')
# 'python-scikit-learn'
# 'python-scikit-image'
# 'python-sphinx-astropy'
# 'python-matplotlib'
# 'python-dask')
#checkdepends=('python-pytest-astropy')
source=("https://files.pythonhosted.org/packages/source/p/photutils/photutils-${pkgver}.tar.gz")
md5sums=('a09edbd9e770f4497a00e48c6f4561af')
prepare() {
cd ${srcdir}/photutils-${pkgver}
sed -i -e '/auto_use/s/True/False/' setup.cfg
}
build() {
cd ${srcdir}/photutils-${pkgver}
python setup.py build --use-system-libraries --offline
# msg "Building Docs"
# python setup.py build_docs
}
#check() {
# cd ${srcdir}/photutils-${pkgver}
# python setup.py test
#}
package_python-photutils() {
depends=('python>=3.5' 'python-numpy>=1.10' 'python-astropy>=2.0' 'python-six')
optdepends=('python-scipy>=0.16: For full functionality'
'python-scikit-image>=0.11: For full functionality'
'python-scikit-learn>=0.18: For full functionality'
'python-matplotlib>=1.3: For full functionality'
'python-photutils-doc: Documentation for python-photutils'
'python-pytest-astropy: For testing')
cd ${srcdir}/photutils-${pkgver}
install -D -m644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 --use-system-libraries --offline
}
#package_python-photutils-doc() {
# pkgdesc="Documentation for Python Photutils module"
# cd ${srcdir}/photutils-${pkgver}/build/sphinx
#
# install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
# cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
#}
|