Name: python-suncalc Version: 0.1.3 Release: 1%{?dist} Summary: Fast, vectorized computation of sun position and sunlight phases License: MIT URL: https://github.com/kylebarron/suncalc-py Source0: %{pypi_source suncalc} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: suncalc computes the sun's position (azimuth and altitude) and the times of sunlight phases such as sunrise, sunset and golden hour for given dates and locations. It is a Python port of the suncalc JavaScript library, vectorized with NumPy and optionally pandas.} %description %{_description} %package -n python3-suncalc Summary: %{summary} %description -n python3-suncalc %{_description} %prep %autosetup -n suncalc-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L suncalc %check %pyproject_check_import # No tests in the sdist. Known value: on the spring equinox at noon UTC the # sun is near the zenith at (0 N, 0 E). %{py3_test_envvars} %{python3} - <<'PYEOF' from datetime import datetime, timezone from math import degrees from suncalc import get_position pos = get_position(datetime(2026, 3, 20, 12, 7, tzinfo=timezone.utc), 0, 0) alt = degrees(pos["altitude"]) assert alt > 89, alt PYEOF %files -n python3-suncalc -f %{pyproject_files} %license LICENSE %doc README.md CHANGELOG.md %changelog * Sat Oct 31 2026 Morgan Hough - 0.1.3-1 - Initial package