gnu: Add python-trubar.

* gnu/packages/python-xyz.scm (python-trubar): New variable.

Change-Id: I684fc614862cbfd3ac8edaaf68e66ea2a8ec237b
This commit is contained in:
Sharlatan Hellseher 2025-01-19 11:49:39 +00:00 committed by Ricardo Wurmus
parent 3e4f27f54c
commit 94eca566b0
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -570,6 +570,45 @@ (define-public python-pyxdameraulevenshtein
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")