[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50021] [PATCH v2 5/8] gnu: Add python-fluent-syntax.
From: |
Vinicius Monego |
Subject: |
[bug#50021] [PATCH v2 5/8] gnu: Add python-fluent-syntax. |
Date: |
Mon, 25 Oct 2021 23:16:13 +0000 |
* 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
- [bug#50021] [PATCH v2 1/8] gnu: Add python-phply., Vinicius Monego, 2021/10/25
- [bug#50021] [PATCH v2 2/8] gnu: Add python-iniparse., Vinicius Monego, 2021/10/25
- [bug#50021] [PATCH v2 3/8] gnu: Remove virtaal., Vinicius Monego, 2021/10/25
- [bug#50021] [PATCH v2 4/8] gnu: Remove python2-translate-toolkit., Vinicius Monego, 2021/10/25
- [bug#50021] [PATCH v2 5/8] gnu: Add python-fluent-syntax.,
Vinicius Monego <=
- [bug#50021] [PATCH v2 6/8] gnu: python-translate-toolkit: Update to 3.4.1., Vinicius Monego, 2021/10/25
- [bug#50021] [PATCH v2 7/8] gnu: python-translate-toolkit: Enable tests., Vinicius Monego, 2021/10/25