git: ef522d0e3d68 - main - astro/py-astroquery: New port: Functions and classes to access online astronomical data resources

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 07 Sep 2025 18:29:49 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ef522d0e3d68f0f3fe6b8b5c216c6964af1d0a3a

commit ef522d0e3d68f0f3fe6b8b5c216c6964af1d0a3a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-09-07 18:29:17 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-09-07 18:29:41 +0000

    astro/py-astroquery: New port: Functions and classes to access online astronomical data resources
---
 astro/Makefile                |  1 +
 astro/py-astroquery/Makefile  | 34 ++++++++++++++++++++++++++++++++++
 astro/py-astroquery/distinfo  |  3 +++
 astro/py-astroquery/pkg-descr |  2 ++
 4 files changed, 40 insertions(+)

diff --git a/astro/Makefile b/astro/Makefile
index bdf1cc1a3662..1de7742a845a 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -87,6 +87,7 @@
     SUBDIR += py-astropy
     SUBDIR += py-astropy-helpers
     SUBDIR += py-astropy-iers-data
+    SUBDIR += py-astroquery
     SUBDIR += py-ephem
     SUBDIR += py-extension-helpers
     SUBDIR += py-fitsio
diff --git a/astro/py-astroquery/Makefile b/astro/py-astroquery/Makefile
new file mode 100644
index 000000000000..a3c8f46e5396
--- /dev/null
+++ b/astro/py-astroquery/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	astroquery
+PORTVERSION=	0.4.10
+CATEGORIES=	astro python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Functions and classes to access online astronomical data resources
+WWW=		https://astroquery.readthedocs.io/en/latest/ \
+		https://github.com/astropy/astroquery
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.rst
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}astropy>=5.0:astro/py-astropy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.8:www/py-beautifulsoup@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}html5lib>=0.999:www/py-html5lib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}keyring>=15.0:security/py-keyring@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=1.20:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyvo>=1.5:astro/py-pyvo@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.19:www/py-requests@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-astropy>=0:astro/py-pytest-astropy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-doctestplus>=0.13:devel/py-pytest-doctestplus@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist pytest
+
+NO_ARCH=	yes
+
+# tests as of 0.4.10: 6 errors in 12.03s, see https://github.com/astropy/astroquery/issues/3402
+
+.include <bsd.port.mk>
diff --git a/astro/py-astroquery/distinfo b/astro/py-astroquery/distinfo
new file mode 100644
index 000000000000..d198333d35ba
--- /dev/null
+++ b/astro/py-astroquery/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1757237494
+SHA256 (astroquery-0.4.10.tar.gz) = eacd91e9da378e641740fbc3123850daa83ba0926a6fff4c40ccbf5dc6d5a406
+SIZE (astroquery-0.4.10.tar.gz) = 12533999
diff --git a/astro/py-astroquery/pkg-descr b/astro/py-astroquery/pkg-descr
new file mode 100644
index 000000000000..32d01be8a014
--- /dev/null
+++ b/astro/py-astroquery/pkg-descr
@@ -0,0 +1,2 @@
+Astroquery is an astropy affiliated package that contains a collection of tools
+to access online Astronomical data. Each web service has its own sub-package.