# Creator: Miguel de Val-Borro # Maintainer: Médéric boquien pkgname=python-astroquery pkgver=0.4.6 pkgrel=2 pkgdesc="Set of tools for querying astronomical web forms and databases" arch=('x86_64') url="http://astroquery.readthedocs.org/en/latest/" license=('BSD') depends=('python>=3.7' 'python-numpy>=1.16' 'python-astropy>=4.0' 'python-requests' 'python-keyring' 'python-beautifulsoup4' 'python-html5lib' 'python-pyvo') optdepends=('python-aplpy: required for the full functionality of the alma module' 'python-pyregion: required for the full functionality of the alma module' 'python-astropy-healpix: required for the full functionality of the cds module' 'python-regions: required for the full functionality of the cds module' 'python-boto3: required for the full functionality of the mast module' ) conflicts=() makedepends=('cython') source=("https://files.pythonhosted.org/packages/source/a/astroquery/astroquery-${pkgver}.tar.gz") sha512sums=('4ec5e2fbd9754ae0be614011a0020218fbdd7d7cf4511836b40cefcf99fa0feb88cc247c2c83e556aa11ff10930b9e4d7784d175039f9581a4551bb4667a3529') build() { cd ${srcdir}/astroquery-${pkgver} PYTHONHASHSEED=0 python setup.py build } package() { cd ${srcdir}/astroquery-${pkgver} install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}/" install -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" licenses/* PYTHONHASHSEED=0 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build }