File python-astroquery.spec of Package python-astroquery
#
# spec file for package python-astroquery
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-astroquery
Version: 0.4.6
Release: 0
Summary: Functions and classes to access online astronomical data resources
License: BSD-3-Clause
URL: https://github.com/astropy/astroquery
Source0: https://files.pythonhosted.org/packages/source/a/astroquery/astroquery-%{version}.tar.gz
Source1: %{name}-rpmlintrc
Patch0: 0001-MAINT-ignore-cgi-deprecation-for-now.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module astropy >= 4.0}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module beautifulsoup4 >= 4.3.2}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module html5lib >= 0.999}
BuildRequires: %{python_module keyring >= 4.0}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module numpy >= 1.16}
BuildRequires: %{python_module pytest-astropy}
BuildRequires: %{python_module pytest-doctestplus >= 0.10.1}
BuildRequires: %{python_module pyvo >= 1.1}
BuildRequires: %{python_module requests >= 2.4.3}
# /SECTION
BuildRequires: fdupes
Requires: python-astropy >= 4.0
Requires: python-beautifulsoup4 >= 4.3.2
Requires: python-html5lib >= 0.999
Requires: python-keyring >= 4.0
Requires: python-numpy >= 1.16
Requires: python-pyvo >= 1.1
Requires: python-requests >= 2.4.3
Suggests: python-mocpy >= 0.5.2
Suggests: python-astropy-healpix
Suggests: python-boto3
Suggests: python-regions
Suggests: python-pyregion
Suggests: python-aplpy
Suggests: python-sphinx-astropy >= 1.5
Suggests: python-scipy
Suggests: python-pytest-astropy
Suggests: python-matplotlib
Suggests: python-jinja2
Suggests: python-flask
Suggests: python-pytest-dependency
BuildArch: noarch
%python_subpackages
%description
Functions and classes to access online astronomical data resources.
%prep
%setup -q -n astroquery-%{version}
%patch0 -p1
# Fix wrong permissions on the file
chmod 0644 ./astroquery/linelists/cdms/data/catdir.cat
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %{python_files}
%doc CHANGES.rst README.rst
%license LICENSE.rst
%{python_sitelib}/astroquery
%{python_sitelib}/astroquery-%{version}-*.egg-info
%changelog