Dependency on `python-astropy-iers-data` is missing
Description:
Dependency on python-astropy-iers-data
is missing
Additional info:
- since
astropy
6.0.0 the IERS Earth Rotation and Leap Second files are separated into another package, ie see this MR
Steps to reproduce:
- run
fitsdiff
for example output:
$ fitsdiff
Traceback (most recent call last):
File "/usr/bin/fitsdiff", line 5, in <module>
from astropy.io.fits.scripts.fitsdiff import main
File "/usr/lib/python3.11/site-packages/astropy/io/fits/__init__.py", line 74, in <module>
from . import card, column, convenience, hdu
File "/usr/lib/python3.11/site-packages/astropy/io/fits/card.py", line 11, in <module>
from .util import _is_int, _str_to_num, _words_group, translate
File "/usr/lib/python3.11/site-packages/astropy/io/fits/util.py", line 23, in <module>
from astropy.utils import data
File "/usr/lib/python3.11/site-packages/astropy/utils/data.py", line 34, in <module>
import astropy_iers_data
ModuleNotFoundError: No module named 'astropy_iers_data'
This can be fixed by installing the python-astropy-iers-data
package, for example this worked:
_pkg=astropy-iers-data
pkgname=python-${_pkg}
pkgver=0.2024.2.5.0.30.52
pkgrel=1
pkgdesc="IERS Earth Rotation and Leap Second tables for the astropy core package"
arch=(x86_64)
url="https://github.com/astropy/astropy-iers-data"
license=(BSD)
depends=(python)
makedepends=(python-build python-installer python-wheel python-setuptools-scm)
source=(https://files.pythonhosted.org/packages/source/a/${_pkg}/${_pkg}-${pkgver}.tar.gz)
sha256sums=('e9e83d3bfed1bbccadffbf13c3810a343b380b03a47d22c44b0c0821d7925e88')
build() {
cd ${_pkg}-${pkgver}
python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
cd ${_pkg}-${pkgver}
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/$pkgname/
}