summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-25 16:49:06 +0100
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:23:06 +0100
commitf5761684c3a29d618d0829c501cd5880c7276953 (patch)
tree0494e835f13fd007085dc3e5c67899eb0e30f6b1 /gnu
parent18b7f23ef3a671dbf207677353ad2415578853af (diff)
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 <sharlatanus@gmail.com> Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/gettext.scm41
1 files changed, 23 insertions, 18 deletions
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm
index 5e3078e0636..6b717044812 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 python-pytest@6.2.4.
- ;;
- ;; 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")