From 39c0b508c10c9aec67ce339bbcbb2c5588077ee2 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sat, 11 Oct 2025 13:49:22 -0700 Subject: [PATCH] astro/py-pysolar: New port: Simulate solar irradiation at any point on Earth --- astro/Makefile | 1 + astro/py-pysolar/Makefile | 24 ++++++++++++++++++++++++ astro/py-pysolar/distinfo | 3 +++ astro/py-pysolar/pkg-descr | 9 +++++++++ 4 files changed, 37 insertions(+) create mode 100644 astro/py-pysolar/Makefile create mode 100644 astro/py-pysolar/distinfo create mode 100644 astro/py-pysolar/pkg-descr 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 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.