Date: Saturday, October 15, 2022 @ 19:40:17
  Author: archange
Revision: 1329233

Initial addition of astropy to [community]

Added:
  python-astropy/
  python-astropy/repos/
  python-astropy/trunk/
  python-astropy/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Added: python-astropy/trunk/PKGBUILD
===================================================================
--- python-astropy/trunk/PKGBUILD                               (rev 0)
+++ python-astropy/trunk/PKGBUILD       2022-10-15 19:40:17 UTC (rev 1329233)
@@ -0,0 +1,51 @@
+# Maintainer: Bruno Pagani <[email protected]>
+# Contributor: Médéric Boquien <[email protected]>
+
+_pkg=astropy
+pkgname=python-${_pkg}
+pkgver=5.1
+pkgrel=1
+pkgdesc="Common core package for Astronomy"
+arch=(x86_64)
+url="https://www.astropy.org/";
+license=(BSD)
+depends=(python cfitsio expat wcslib python-numpy python-pyerfa python-yaml 
python-packaging)
+makedepends=(python-setuptools python-extension-helpers)
+optdepends=('python-matplotlib: plotting functionality astropy.visualization'
+            'python-scipy: variety of features in several modules'
+            'python-h5py: read/write Table objects from/to HDF5 files'
+            'python-beautifulsoup4: read Table objects from HTML files'
+            'python-html5lib: read Table objects from HTML files using the 
pandas reader'
+            'python-bleach: sanitize text when disabling HTML escaping in the 
Table HTML writer'
+            'libxml2: validates VOTABLE XML files'
+            'python-pandas: convert Table objects from/to pandas DataFrame 
objects'
+            'python-sortedcontainers: faster SCEngine indexing engine with 
Table'
+            'python-pytz: specify and convert between timezones'
+            #'python-jplephem: retrieves JPL ephemeris of Solar System objects'
+            'python-setuptools: discovery of entry points which are used to 
insert fitters into astropy.modeling.fitting'
+            'python-mpmath: ‘kraft-burrows-nousek’ interval in 
poisson_conf_interval'
+            #'python-asdf: serialization of various Astropy classes into a 
portable, hierarchical, human-readable representation'
+            'python-bottleneck: improves the performance of sigma-clipping and 
other functionality that may require computing statistics on arrays with NaN 
values'
+            'python-pyarrow: read/write Table objects from/to Parquet files')
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/a/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('1db1b2c7eddfc773ca66fa33bd07b25d5b9c3b5eee2b934e0ca277fa5b1b7b7e')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  ASTROPY_USE_SYSTEM_ALL=1 python setup.py build
+}
+
+# Import issues, no time to investigate
+#check() {
+#  cd ${_pkg}-${pkgver}
+#  local python_version=$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')
+#  PYTHONPATH="${PWD}"/build/lib.linux-${CARCH}-cpython-${python_version}/
+#  pytest -vv --color=yes
+#}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  ASTROPY_USE_SYSTEM_ALL=1 python setup.py install --skip-build 
--root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/$pkgname/
+}

Reply via email to