summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorAllan Adair <allan@adair.no>2025-10-15 10:16:52 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-16 10:36:55 +0100
commit3ef8f8ce36af0179ae2e99ad6d4cc7e3db0d48c0 (patch)
tree364c45bfd1d1cdd4180f50039ef561d625e22c02 /gnu/packages/python-xyz.scm
parentafb9c65cf3a4145d475d3a60f54a78a604681194 (diff)
gnu: Add python-durationpy.
* gnu/packages/python-xyz.scm (python-durationpy): New variable. Change-Id: Ibb3ee965a1f121dc0301f3fdaaea2a432cad5010 Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1841903e60..f2b396fe45 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -37154,6 +37154,31 @@ other.")
nested data structures in Python like lists and dictionaries.")
(license license:expat)))
+(define-public python-durationpy
+ (package
+ (name "python-durationpy")
+ (version "0.10")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/icholy/durationpy")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1617wg77j68z7v4rbjrhv6n7bchznhgjn21qrmb034sf4hwg77dl"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "test.py")))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/icholy/durationpy")
+ (synopsis "Python <-> Golang time duration formats converter")
+ (description
+ "This package implements a functionality to convert between
+Python's @code{datetime.timedelta} and Golang's @code{time.Duration} formats.")
+ (license license:expat)))
+
(define-public python-murmurhash3
(let ((commit "01f1128a2c5ea08e6dc33515e140bedd68393a2d")
(revision "0"))