aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-10-11 20:49:22 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2025-10-11 23:59:30 +0000
commit39c0b508c10c9aec67ce339bbcbb2c5588077ee2 (patch)
tree68138080afce04e83bbe43ca6b0c5c7ac4897539
parentd20c714eed50e2b69d9046c7ba2a150931318766 (diff)
astro/py-pysolar: New port: Simulate solar irradiation at any point on Earth
-rw-r--r--astro/Makefile1
-rw-r--r--astro/py-pysolar/Makefile24
-rw-r--r--astro/py-pysolar/distinfo3
-rw-r--r--astro/py-pysolar/pkg-descr9
4 files changed, 37 insertions, 0 deletions
diff --git a/astro/Makefile b/astro/Makefile
index 089e5c5a75d6..0780ef5d74a1 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -103,6 +103,7 @@
SUBDIR += py-pymeeus
SUBDIR += py-pymetar
SUBDIR += py-pysofa
+ SUBDIR += py-pysolar
SUBDIR += py-pytest-astropy
SUBDIR += py-pytest-astropy-header
SUBDIR += py-pyvo
diff --git a/astro/py-pysolar/Makefile b/astro/py-pysolar/Makefile
new file mode 100644
index 000000000000..e69454ea562b
--- /dev/null
+++ b/astro/py-pysolar/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= pysolar
+DISTVERSION= 0.13
+CATEGORIES= astro science python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Simulate solar irradiation at any point on Earth
+WWW= https://pysolar.org/ \
+ https://github.com/pingswept/pysolar
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+RUN_DEPENDS= ${PYNUMPY}
+
+USES= python
+USE_PYTHON= distutils autoplist pytest
+
+NO_ARCH= yes
+
+# tests as of 0.13: 84 passed, 343 warnings, 1 error in 14.47s
+
+.include <bsd.port.mk>
diff --git a/astro/py-pysolar/distinfo b/astro/py-pysolar/distinfo
new file mode 100644
index 000000000000..b05c7ce3274a
--- /dev/null
+++ b/astro/py-pysolar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760212092
+SHA256 (pysolar-0.13.tar.gz) = 05913740694e4bb2af8412de3fa278c0435b3b15b2975c8e38625fc4eed1fd6c
+SIZE (pysolar-0.13.tar.gz) = 44526
diff --git a/astro/py-pysolar/pkg-descr b/astro/py-pysolar/pkg-descr
new file mode 100644
index 000000000000..f53a091cce11
--- /dev/null
+++ b/astro/py-pysolar/pkg-descr
@@ -0,0 +1,9 @@
+Python libraries for simulating solar irradiation at any point on Earth.
+
+This package provides functions to calculate solar position (azimuth and
+altitude) and estimate solar radiation received at a given location and time.
+It accounts for atmospheric effects and can be used for solar energy analysis,
+astronomy, and climate research.
+
+The library supports timezone-aware datetime objects and provides accurate
+calculations based on established solar models.