From 9305e2ef2b09ad6ed5017d26159d477abd87b48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Daniel=20Colmenares=20Oviedo?= Date: Thu, 12 Jun 2025 01:52:52 -0400 Subject: [PATCH] devel/py-cronsim: New port: Cron expression parser and evaluator Cron Sim(ulator), a cron expression parser and evaluator. Works with Python 3.9+. CronSim is written for and being used in Healthchecks (a cron job monitoring service). Approved by: acm (mentor) --- devel/Makefile | 1 + devel/py-cronsim/Makefile | 23 +++++++++++++++++++++++ devel/py-cronsim/distinfo | 3 +++ devel/py-cronsim/pkg-descr | 3 +++ 4 files changed, 30 insertions(+) create mode 100644 devel/py-cronsim/Makefile create mode 100644 devel/py-cronsim/distinfo create mode 100644 devel/py-cronsim/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index d7eca7166105..20e5240130de 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4739,6 +4739,7 @@ SUBDIR += py-crc32c SUBDIR += py-crcmod SUBDIR += py-crick + SUBDIR += py-cronsim SUBDIR += py-crontab SUBDIR += py-crosshair-tool SUBDIR += py-cson diff --git a/devel/py-cronsim/Makefile b/devel/py-cronsim/Makefile new file mode 100644 index 000000000000..0d2ac9f6aef2 --- /dev/null +++ b/devel/py-cronsim/Makefile @@ -0,0 +1,23 @@ +PORTNAME= cronsim +DISTVERSION= 2.6 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dtxdf@FreeBSD.org +COMMENT= Cron expression parser and evaluator +WWW= https://pypi.org/project/${PORTNAME} \ + https://github.com/cuu508/${PORTNAME} + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-cronsim/distinfo b/devel/py-cronsim/distinfo new file mode 100644 index 000000000000..1bb42373616f --- /dev/null +++ b/devel/py-cronsim/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1749597413 +SHA256 (cronsim-2.6.tar.gz) = 5aab98716ef90ab5ac6be294b2c3965dbf76dc869f048846a0af74ebb506c10d +SIZE (cronsim-2.6.tar.gz) = 20315 diff --git a/devel/py-cronsim/pkg-descr b/devel/py-cronsim/pkg-descr new file mode 100644 index 000000000000..ea3b77e79b56 --- /dev/null +++ b/devel/py-cronsim/pkg-descr @@ -0,0 +1,3 @@ +Cron Sim(ulator), a cron expression parser and evaluator. Works +with Python 3.9+. CronSim is written for and being used in Healthchecks +(a cron job monitoring service).