git: b7e51a2806bb - main - devel/py-durationpy: add port: Convert between datetime.timedelta and Go's time.Duration strings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Sep 2025 20:56:15 UTC
The branch main has been updated by tagattie:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b7e51a2806bb85d2d684eaee726c722d42aa38f4
commit b7e51a2806bb85d2d684eaee726c722d42aa38f4
Author: Pavel Timofeev <timp87@gmail.com>
AuthorDate: 2025-09-22 19:16:06 +0000
Commit: Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-09-23 20:54:24 +0000
devel/py-durationpy: add port: Convert between datetime.timedelta and Go's time.Duration strings
Python module for converting between datetime.timedelta
and Go's Duration strings.
WWW: https://github.com/icholy/durationpy
PR: 289763
Reported by: Pavel Timofeev <timp87@gmail.com> (new maintainer)
---
devel/Makefile | 1 +
devel/py-durationpy/Makefile | 19 +++++++++++++++++++
devel/py-durationpy/distinfo | 3 +++
devel/py-durationpy/pkg-descr | 2 ++
4 files changed, 25 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 12dda3854c69..a8859a2b7b34 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4841,6 +4841,7 @@
SUBDIR += py-dukpy
SUBDIR += py-dulwich
SUBDIR += py-dunamai
+ SUBDIR += py-durationpy
SUBDIR += py-durus
SUBDIR += py-dynrules
SUBDIR += py-e3-core
diff --git a/devel/py-durationpy/Makefile b/devel/py-durationpy/Makefile
new file mode 100644
index 000000000000..b01688ef0186
--- /dev/null
+++ b/devel/py-durationpy/Makefile
@@ -0,0 +1,19 @@
+PORTNAME= durationpy
+DISTVERSION= 0.10
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= timp87@gmail.com
+COMMENT= Convert between datetime.timedelta and Go's time.Duration strings
+WWW= https://github.com/icholy/durationpy
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-durationpy/distinfo b/devel/py-durationpy/distinfo
new file mode 100644
index 000000000000..821f03197fe9
--- /dev/null
+++ b/devel/py-durationpy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1758568743
+SHA256 (durationpy-0.10.tar.gz) = 1fa6893409a6e739c9c72334fc65cca1f355dbdd93405d30f726deb5bde42fba
+SIZE (durationpy-0.10.tar.gz) = 3335
diff --git a/devel/py-durationpy/pkg-descr b/devel/py-durationpy/pkg-descr
new file mode 100644
index 000000000000..a2b2fe2715d7
--- /dev/null
+++ b/devel/py-durationpy/pkg-descr
@@ -0,0 +1,2 @@
+Python module for converting between datetime.timedelta
+and Go's Duration strings.