summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-01-19 11:49:39 +0000
committerRicardo Wurmus <rekado@elephly.net>2025-01-20 21:38:04 +0100
commit94eca566b08976621d6557a283e4af19dda76f54 (patch)
treec52f035ea157bc9da0d95a348831eee31919f862 /gnu/packages/python-xyz.scm
parent3e4f27f54c6b5742e46f95ab87f9af287848dc2c (diff)
gnu: Add python-trubar.
* gnu/packages/python-xyz.scm (python-trubar): New variable. Change-Id: I684fc614862cbfd3ac8edaaf68e66ea2a8ec237b
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 46a46ae84c..f5bcb41eba 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -570,6 +570,45 @@ comparison operators, as defined in the original
edit distance algorithm for Python in Cython for high performance.")
(license license:bsd-3)))
+(define-public python-trubar
+ (package
+ (name "python-trubar")
+ (version "0.3.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "trubar" version))
+ (sha256
+ (base32 "149l5wid1b41gmfzsrhapcigcbcsflviz8p1pfa937443fxw1dkd"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; AttributeError: module 'libcst' has no attribute
+ ;; 'FlattenSentinel'. Did you mean: 'MaybeSentinel'?
+ (list "not test_import_from_future"
+ "test_inport_after_docstring"
+ ;; AssertionError: Items in the second set but not
+ ;; the first
+ "test_walk_files")
+ " and not "))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list python-libcst
+ python-pyyaml))
+ (home-page "https://github.com/janezd/trubar")
+ (synopsis "Utility for translation of Python sources")
+ (description
+ "This package provides a tool for translation and localization of Python
+programs via modification of source files. Trubar supports f-strings and does
+not require any changes to the original source code, such as marking strings
+for translation.")
+ (license license:expat)))
+
(define-public python-xmldiff
(package
(name "python-xmldiff")