Subject: bug#63049: [PATCH] Add support for the python i18n package to Guix

From: Graham James Addis <[email-masked]>
Date: Fri, 21 Apr 2023 16:53:55 +0100

The package is built from source at https://github.com/danhper/python-i18n
and is available on PyPi here: https://pypi.org/project/python-i18n/
---
 gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 284f8019bb..ace316d746 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -135,6 +135,7 @@
 ;;; Copyright © 2023 Gabriel Wicki <[email-masked]>
 ;;; Copyright © 2023 Amade Nemes <[email-masked]>
 ;;; Copyright © 2023 Bruno Victal <[email-masked]>
+;;; Copyright © 2023 Graham James Addis <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1600,6 +1601,29 @@ (define-public python-clyent
 by @code{binstar}, @code{binstar-build}, and @code{chalmers}.")
     (license license:bsd-3)))
 
+(define-public python-i18n
+  (package
+    (name "python-i18n")
+    (version "v0.3.9")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/danhper/python-i18n")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0c7fjx3znyp0d8p5c8nlny8bcaa4q2i4dzd436cfas3afsha2mp8"))))
+    (build-system python-build-system)
+
+    (inputs (list python-pyyaml))
+    (synopsis
+     "This library provides i18n functionality for Python 3 out of the box")
+    (description (string-append
+                  "This library provides i18n functionality for Python 3 out of the box.
The usage is mostly based on Rails i18n library."))
+    (home-page "https://github.com/danhper/python-i18n")
+    (license license:expat)))
+
 (define-public python-babel
   (package
     (name "python-babel")
-- 
2.39.2