summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2018-02-03 19:13:27 +0800
committerUniversebenzene2018-02-03 19:13:27 +0800
commit0dc3c5d418f04d86c160d769217dd73cb3298af4 (patch)
treec46e79d816486100b7241f256973d1341a788c48
downloadaur-0dc3c5d418f04d86c160d769217dd73cb3298af4.tar.gz
Initial import 0.4
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD29
-rw-r--r--astroplan-ephem.patch11
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..91e18c3a36a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+# Generated by mksrcinfo v8
+# Sat Feb 3 11:11:29 UTC 2018
+pkgbase = python-astroplan
+ pkgdesc = A python package to help astronomers plan observations
+ pkgver = 0.4
+ pkgrel = 1
+ url = https://astroplan.readthedocs.io/en/latest/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = cython
+ depends = python>=3.5
+ depends = python-numpy
+ depends = python-astropy>=1.3
+ depends = python-pytz
+ optdepends = python-matplotlib: Plotting support
+ optdepends = python-astroquery: Astroquery support
+ source = https://files.pythonhosted.org/packages/source/a/astroplan/astroplan-0.4.tar.gz
+ source = astroplan-ephem.patch
+ md5sums = 8ac6dec44aadae0b98775658856a4f01
+ md5sums = 3b992c8bd610d72ff2c61a059bb20e30
+
+pkgname = python-astroplan
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7a2021e0f67
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Astro Benzene <universebenzene at sina dot com>
+pkgname=python-astroplan
+pkgver=0.4
+pkgrel=1
+pkgdesc="A python package to help astronomers plan observations"
+arch=('i686' 'x86_64')
+url="https://astroplan.readthedocs.io/en/latest/"
+license=('BSD')
+depends=('python>=3.5' 'python-numpy' 'python-astropy>=1.3' 'python-pytz')
+makedepends=('cython')
+optdepends=('python-matplotlib: Plotting support'
+ 'python-astroquery: Astroquery support')
+source=("https://files.pythonhosted.org/packages/source/a/astroplan/astroplan-${pkgver}.tar.gz"
+ 'astroplan-ephem.patch')
+md5sums=('8ac6dec44aadae0b98775658856a4f01'
+ '3b992c8bd610d72ff2c61a059bb20e30')
+
+prepare() {
+ cd "${srcdir}/astroplan-${pkgver}"
+ patch -Np1 -i "${srcdir}/astroplan-ephem.patch"
+}
+
+package() {
+ cd ${srcdir}/astroplan-${pkgver}
+
+ install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" licenses/*
+ python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 --use-system-libraries --offline
+}
diff --git a/astroplan-ephem.patch b/astroplan-ephem.patch
new file mode 100644
index 00000000000..b71ec9ae171
--- /dev/null
+++ b/astroplan-ephem.patch
@@ -0,0 +1,11 @@
+--- a/astroplan/conftest.py 2017-10-24 09:42:38.000000000 +0800
++++ b/astroplan/conftest.py 2018-02-03 17:18:18.183223264 +0800
+@@ -40,7 +40,7 @@
+ try:
+ PYTEST_HEADER_MODULES['Astropy'] = 'astropy'
+ PYTEST_HEADER_MODULES['pytz'] = 'pytz'
+- PYTEST_HEADER_MODULES['pyephem'] = 'pyephem'
++ PYTEST_HEADER_MODULES['pyephem'] = 'ephem'
+ PYTEST_HEADER_MODULES['matplotlib'] = 'matplotlib'
+ PYTEST_HEADER_MODULES['nose'] = 'nose'
+ PYTEST_HEADER_MODULES['pytest-mpl'] = 'pytest_mpl'