Date: Tuesday, November 15, 2022 @ 21:43:16
  Author: arojas
Revision: 1349026

archrelease: copy trunk to community-staging-x86_64

Added:
  python-astropy/repos/community-staging-x86_64/
  python-astropy/repos/community-staging-x86_64/PKGBUILD
    (from rev 1349025, python-astropy/trunk/PKGBUILD)

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

Copied: python-astropy/repos/community-staging-x86_64/PKGBUILD (from rev 
1349025, python-astropy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-11-15 21:43:16 UTC (rev 1349026)
@@ -0,0 +1,51 @@
+# Maintainer: Bruno Pagani <archa...@archlinux.org>
+# Contributor: Médéric Boquien <mboqu...@free.fr>
+
+_pkg=astropy
+pkgname=python-${_pkg}
+pkgver=5.1.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=('ba4bd696af7090fd399b464c704bf27b5633121e461785edc70432606a94bd81')
+
+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