guix_mirror_bot pushed a commit to branch next-master
in repository guix.
commit cde8b9aeb5ebf9b76197949c404cb38fa07e321b
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Dec 25 16:49:06 2025 +0100
gnu: mdpo: Update to 2.1.4.
* gnu/packages/gettext.scm (mdpo): Update to 2.1.4.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-flags>: Ignore failing tests.
[native-inputs]: Add python-hatchling, python-pytest,
python-setuptools.
[propagated-inputs]: Add python-importlib-metadata-argparse-version,
python-md-ulb-pwrap, python-polib.
Change-Id: I53fb5cc3cb54cf847b4057b71e0a43d268dc93ef
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/gettext.scm | 41 +++++++++++++++++++++++------------------
1 file changed, 23 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm
index 5e3078e063..6b71704481 100644
--- a/gnu/packages/gettext.scm
+++ b/gnu/packages/gettext.scm
@@ -234,36 +234,41 @@ color, font attributes (weight, posture), or
underlining.")
(define-public mdpo
(package
(name "mdpo")
- (version "0.3.86") ;the last version without Rust
+ (version "2.1.4")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/mondeja/mdpo")
- (commit (string-append "v" version))))
+ (url "https://github.com/mondeja/mdpo")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "130g8ggy0xgk5jmlx23569wmv9fz7fhm8qi46cjj7n4fxr0vnmyx"))))
+ (base32 "02i17xly3yvfk6lpjl6sc15xzq9s3zc814siag1winyqckzl74gj"))))
(build-system pyproject-build-system)
(arguments
(list
- ;; tests: 91 passed
#:test-flags
- ;; XXX: The Most of the tests fail because 0.3.86 was released in 2022
- ;; and depends on [email protected].
- ;;
- ;; OSError: pytest: reading from stdin while output is captured!
- ;; Consider using `-s`.
- #~(list "--ignore=test/test_integration/"
- "--ignore=test/test_unit/test_md2po/"
- "--ignore=test/test_unit/test_md2po2md/"
- "--ignore=test/test_unit/test_mdpo2html/"
- "--ignore=test/test_unit/test_po2md/")))
+ #~(list
+ ;; XXX: Most failing test are caused by improper line wrapping.
+ "--ignore=tests/test_unit/test_md2po2md/test_md2po2md_cli.py"
+ "--ignore=tests/test_unit/test_text.py"
+ "--ignore=tests/test_unit/test_command.py"
+ "--ignore=tests/test_unit/test_md2po/test_location.py"
+ "-k" "not test_mark_not_found_as_obsolete")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "pyproject.toml"
+ ((".*contextlib-chdir.*") ""))))))) ; Uneeded backport.
(native-inputs
- (list python-pytest
+ (list python-hatchling
+ python-pytest
python-setuptools))
- (inputs
- (list python-polib
+ (propagated-inputs
+ (list python-importlib-metadata-argparse-version
+ python-md-ulb-pwrap
+ python-polib
python-pymd4c))
(home-page "https://github.com/mondeja/mdpo")
(synopsis "Markdown file translation utilities using pofiles")