summaryrefslogtreecommitdiff
path: root/astro/py-sunpy
diff options
context:
space:
mode:
Diffstat (limited to 'astro/py-sunpy')
-rw-r--r--astro/py-sunpy/Makefile9
-rw-r--r--astro/py-sunpy/distinfo6
-rw-r--r--astro/py-sunpy/files/patch-sunpy_io_src_ana___pyana.c14
3 files changed, 22 insertions, 7 deletions
diff --git a/astro/py-sunpy/Makefile b/astro/py-sunpy/Makefile
index a6d2b5b416ca..551ca12d6edd 100644
--- a/astro/py-sunpy/Makefile
+++ b/astro/py-sunpy/Makefile
@@ -1,6 +1,5 @@
PORTNAME= sunpy
-DISTVERSION= 6.1.1
-PORTREVISION= 1
+DISTVERSION= 7.0.1
CATEGORIES= astro
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -23,9 +22,11 @@ RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}aiohttp>=0:www/py-aiohttp@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}parfive>=0:ftp/py-parfive@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlalchemy14>=0:databases/py-sqlalchemy14@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>=2.32.0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}fsspec>=2023.6.0:filesystems/py-fsspec@${PY_FLAVOR}
-USES= python:3.9+
+USES= python
USE_PYTHON= autoplist distutils
.include <bsd.port.mk>
diff --git a/astro/py-sunpy/distinfo b/astro/py-sunpy/distinfo
index d0d6406a7e2f..f8f108c90fd1 100644
--- a/astro/py-sunpy/distinfo
+++ b/astro/py-sunpy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1740870864
-SHA256 (sunpy-6.1.1.tar.gz) = c609a6b1b0bb286bd42789940f54fcb7d6900dfcfe217df54f859ff6082e13db
-SIZE (sunpy-6.1.1.tar.gz) = 3788826
+TIMESTAMP = 1754620981
+SHA256 (sunpy-7.0.1.tar.gz) = f59086f42b53a6018696ab57725d9ea5107315c6d5bc833365c5e4e42439ffe0
+SIZE (sunpy-7.0.1.tar.gz) = 4199162
diff --git a/astro/py-sunpy/files/patch-sunpy_io_src_ana___pyana.c b/astro/py-sunpy/files/patch-sunpy_io_src_ana___pyana.c
new file mode 100644
index 000000000000..d8846690c0ef
--- /dev/null
+++ b/astro/py-sunpy/files/patch-sunpy_io_src_ana___pyana.c
@@ -0,0 +1,14 @@
+--- sunpy/io/src/ana/_pyana.c.orig 2025-07-01 07:29:54 UTC
++++ sunpy/io/src/ana/_pyana.c
+@@ -6,11 +6,6 @@ a cleaned up version of the original anarw routines.
+ a cleaned up version of the original anarw routines.
+ */
+
+-// Needed due to https://github.com/numpy/numpy/issues/16970
+-struct _typeobject {
+- int foo;
+-};
+-
+ #include <Python.h> // For python extension
+ #define NPY_NO_DEPRECATED_API NPY_2_0_API_VERSION
+ #include <numpy/arrayobject.h> // For numpy