unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 50021@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#50021] [PATCH v2 5/8] gnu: Add python-fluent-syntax.
Date: Mon, 25 Oct 2021 23:16:13 +0000	[thread overview]
Message-ID: <20211025231615.73660-5-monego@posteo.net> (raw)
In-Reply-To: <20211025231615.73660-1-monego@posteo.net>

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1501fdac39..068278c2f8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13530,6 +13530,39 @@ interface to the Amazon Web Services (AWS) API.")
 @acronym{AWS,Amazon Web Services}.")
     (license license:asl2.0)))
 
+(define-public python-fluent-syntax
+  (package
+    (name "python-fluent-syntax")
+    (version "0.18.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference ; no tests in PyPI release
+             (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)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'goto-syntax-dir
+           (lambda _
+             (chdir "fluent.syntax")))
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "python" "runtests.py")))))))
+    (propagated-inputs
+     `(("python-six" ,python-six)))
+    (home-page "https://github.com/projectfluent/python-fluent")
+    (synopsis "Localization library for expressive translations")
+    (description "This package includes the parser, serializer, and traversal
+utilities like Visitor and Transformer for Fluent files.")
+    (license license:asl2.0)))
+
 (define-public python-pyfiglet
   (package
     (name "python-pyfiglet")
-- 
2.30.2





  parent reply	other threads:[~2021-10-25 23:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-12  1:29 [bug#50021] [PATCH 0/7] Update python-translate-toolkit Vinicius Monego
2021-08-12  1:31 ` [bug#50021] [PATCH 1/7] gnu: Add python-phply Vinicius Monego
2021-08-12  1:31   ` [bug#50021] [PATCH 2/7] gnu: Add python-iniparse Vinicius Monego
2021-08-12  1:31   ` [bug#50021] [PATCH 3/7] gnu: Remove virtaal Vinicius Monego
2021-08-12  1:31   ` [bug#50021] [PATCH 4/7] gnu: python-translate-toolkit: Update to 3.3.6 Vinicius Monego
2021-08-12  1:31   ` [bug#50021] [PATCH 5/7] gnu: Remove python2-translate-toolkit Vinicius Monego
2021-08-12  1:31   ` [bug#50021] [PATCH 6/7] gnu: python-translate-toolkit: Enable tests Vinicius Monego
2021-08-12  1:31   ` [bug#50021] [PATCH 7/7] gnu: python-diff-match-patch: Update to 20200713 Vinicius Monego
2021-10-25 23:16 ` [bug#50021] [PATCH v2 1/8] gnu: Add python-phply Vinicius Monego
2021-10-25 23:16   ` [bug#50021] [PATCH v2 2/8] gnu: Add python-iniparse Vinicius Monego
2021-10-25 23:16   ` [bug#50021] [PATCH v2 3/8] gnu: Remove virtaal Vinicius Monego
2021-10-25 23:16   ` [bug#50021] [PATCH v2 4/8] gnu: Remove python2-translate-toolkit Vinicius Monego
2021-10-25 23:16   ` Vinicius Monego [this message]
2021-10-25 23:16   ` [bug#50021] [PATCH v2 6/8] gnu: python-translate-toolkit: Update to 3.4.1 Vinicius Monego
2021-10-25 23:16   ` [bug#50021] [PATCH v2 7/8] gnu: python-translate-toolkit: Enable tests Vinicius Monego
2021-10-26 14:48 ` [bug#50021] [PATCH v2 8/8] gnu: python-diff-match-patch: Update to 20200713 Vinicius Monego
2022-08-21 22:24 ` bug#50021: [PATCH 0/7] Update python-translate-toolkit Vinicius Monego

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211025231615.73660-5-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=50021@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).