Subject: [PATCH 1/4] gnu: Add python-fluent-syntax.

From: Adam Faiz <[email-masked]>
Date: Fri, 10 Mar 2023 01:07:13 +0800

From ca7555bdf0939dff37ea698fb918601cc6d59a49 Mon Sep 17 00:00:00 2001
Message-Id: <c[email-masked]>
In-Reply-To: <[email-masked]>
References: <[email-masked]>
From: AwesomeAdam54321 <[email-masked]>
Date: Thu, 9 Mar 2023 23:38:43 +0800
Subject: [PATCH 1/4] gnu: Add python-fluent-syntax.

* gnu/packages/python-xyz.scm (python-fluent-syntax): New variable.
---
  gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++
  1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 92ea561737..625c703aaf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27650,6 +27650,35 @@ (define-public python-lazr-config
  validation.")
      (license license:lgpl3)))
  
+(define-public python-fluent-syntax
+  (package
+    (name "python-fluent-syntax")
+    (version "0.18.1")
+    (source
+     (origin
+       ;; Tests not included in release.
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/projectfluent/python-fluent")
+              (commit (string-append "fluent.syntax@" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "06a88fyhqvmhpp1wf7ghcmpzg92s8wgpb1bbi4y09ixva5r9dgwg"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     (list python-six))
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'build 'chdir
+               (lambda _
+                 (chdir "fluent.syntax"))))))
+    (home-page "https://github.com/projectfluent/python-fluent")
+    (synopsis "Localization library for expressive translations")
+    (description "fluent.syntax provides the parser, serializer,
+and traversal utilities for the Fluent localization system.")
+    (license license:asl2.0)))
+
  (define-public python-flufl-bounce
    (package
      (name "python-flufl-bounce")
-- 
2.39.2