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 46a46ae84cf..f5bcb41eba7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -570,6 +570,45 @@ comparison operators, as defined in the original
570edit distance algorithm for Python in Cython for high performance.") 570edit distance algorithm for Python in Cython for high performance.")
571 (license license:bsd-3))) 571 (license license:bsd-3)))
572 572
573(define-public python-trubar
574 (package
575 (name "python-trubar")
576 (version "0.3.4")
577 (source
578 (origin
579 (method url-fetch)
580 (uri (pypi-uri "trubar" version))
581 (sha256
582 (base32 "149l5wid1b41gmfzsrhapcigcbcsflviz8p1pfa937443fxw1dkd"))))
583 (build-system pyproject-build-system)
584 (arguments
585 (list
586 #:test-flags
587 #~(list "-k" (string-join
588 ;; AttributeError: module 'libcst' has no attribute
589 ;; 'FlattenSentinel'. Did you mean: 'MaybeSentinel'?
590 (list "not test_import_from_future"
591 "test_inport_after_docstring"
592 ;; AssertionError: Items in the second set but not
593 ;; the first
594 "test_walk_files")
595 " and not "))))
596 (native-inputs
597 (list python-pytest
598 python-setuptools
599 python-wheel))
600 (propagated-inputs
601 (list python-libcst
602 python-pyyaml))
603 (home-page "https://github.com/janezd/trubar")
604 (synopsis "Utility for translation of Python sources")
605 (description
606 "This package provides a tool for translation and localization of Python
607programs via modification of source files. Trubar supports f-strings and does
608not require any changes to the original source code, such as marking strings
609for translation.")
610 (license license:expat)))
611
573(define-public python-xmldiff 612(define-public python-xmldiff
574 (package 613 (package
575 (name "python-xmldiff") 614 (name "python-xmldiff")