git: 2cadd95dd62a - main - devel/py-oncalendar: New port: Systemd OnCalendar expression parser and evaluator

From: Jesús Daniel Colmenares Oviedo <dtxdf_at_FreeBSD.org>
Date: Thu, 26 Jun 2025 23:47:45 UTC
The branch main has been updated by dtxdf:

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

commit 2cadd95dd62aa71ad52477f68e04376d2db71ff3
Author:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
AuthorDate: 2025-06-12 05:54:03 +0000
Commit:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
CommitDate: 2025-06-26 23:46:17 +0000

    devel/py-oncalendar: New port: Systemd OnCalendar expression parser and evaluator
    
    OnCalendar is a systemd expression parser and evaluator written for
    and being used in Healthchecks (a scheduled task monitoring service).
    
    This package provides three iterators:
    
    - base: supports expressions without timezone.
    - tz: supports expressions with and without timezone.
    - oncalendar: supports multiple expressions with or without timezones,
      separated by newlines.
    
    Approved by:    acm (mentor)
---
 devel/Makefile                |  1 +
 devel/py-oncalendar/Makefile  | 20 ++++++++++++++++++++
 devel/py-oncalendar/distinfo  |  3 +++
 devel/py-oncalendar/pkg-descr |  9 +++++++++
 4 files changed, 33 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 20e5240130de..59a5d7964e46 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5332,6 +5332,7 @@
     SUBDIR += py-olefile
     SUBDIR += py-omnijson
     SUBDIR += py-omniorb
+    SUBDIR += py-oncalendar
     SUBDIR += py-onigurumacffi
     SUBDIR += py-opcodes
     SUBDIR += py-openapi-codec
diff --git a/devel/py-oncalendar/Makefile b/devel/py-oncalendar/Makefile
new file mode 100644
index 000000000000..ff2cd398b8f8
--- /dev/null
+++ b/devel/py-oncalendar/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	oncalendar
+DISTVERSION=	1.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	dtxdf@FreeBSD.org
+COMMENT=	Systemd OnCalendar expression parser and evaluator
+WWW=		https://pypi.org/project/${PORTNAME} \
+		https://github.com/cuu508/${PORTNAME}
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-oncalendar/distinfo b/devel/py-oncalendar/distinfo
new file mode 100644
index 000000000000..331c53fb3330
--- /dev/null
+++ b/devel/py-oncalendar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1749600049
+SHA256 (oncalendar-1.1.tar.gz) = 3122aa811786c313568a53745015729aa650e35054b689c08b6db4b1ee891287
+SIZE (oncalendar-1.1.tar.gz) = 8650
diff --git a/devel/py-oncalendar/pkg-descr b/devel/py-oncalendar/pkg-descr
new file mode 100644
index 000000000000..b8beefc8f079
--- /dev/null
+++ b/devel/py-oncalendar/pkg-descr
@@ -0,0 +1,9 @@
+OnCalendar is a systemd expression parser and evaluator written for
+and being used in Healthchecks (a scheduled task monitoring service).
+
+This package provides three iterators:
+
+- base: supports expressions without timezone.
+- tz: supports expressions with and without timezone.
+- oncalendar: supports multiple expressions with or without timezones,
+  separated by newlines.