diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 13:11:13 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 13:12:19 +0000 |
| commit | 56598668a72e5cbd89d16fde03731110e9dbf7d2 (patch) | |
| tree | 5d3ded3f5af73dc96bd86f90278cbfaa474cdc5d /gnu | |
| parent | eb4aa7bd2c407bd18df7a6af3939672666611e4a (diff) | |
gnu: mdpo: Update to 0.3.86.
* gnu/packages/gettext.scm (mdpo): Update to 0.3.86.
[source]: Switch to git-fetch.
[build-system]: Switch pyproject-build-system.
[inputs]: Add python-polib and python-pymd4c.
[propagated-inputs]: Remove python-polib and python-pymd4c.
[native-inputs]: Remove python-bump2version and python-yamllint; add
python-setuptools.
Change-Id: I1f5bc5dd273768adad5d87f70f0646c60310668f
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/gettext.scm | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm index daffe656e6f..5e3078e0636 100644 --- a/gnu/packages/gettext.scm +++ b/gnu/packages/gettext.scm @@ -34,10 +34,11 @@ #:use-module (gnu packages) #:use-module (guix packages) #:use-module (guix gexp) + #:use-module (guix git-download) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) - #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (gnu packages bash) #:use-module (gnu packages check) #:use-module (gnu packages docbook) @@ -48,6 +49,7 @@ #:use-module (gnu packages perl-check) #:use-module (gnu packages tex) #:use-module (gnu packages xml) + #:use-module (gnu packages python-build) #:use-module (gnu packages python-xyz) #:use-module (gnu packages sphinx) #:use-module (guix utils)) @@ -232,17 +234,37 @@ color, font attributes (weight, posture), or underlining.") (define-public mdpo (package (name "mdpo") - (version "0.3.6") + (version "0.3.86") ;the last version without Rust (source (origin - (method url-fetch) - (uri (pypi-uri "mdpo" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/mondeja/mdpo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "0kgbm0af7jwpfspa2xxiy9nc2l1r2s1rhbhz4r229zcqv49ak6sq")))) - (build-system python-build-system) - (native-inputs (list python-bump2version python-pytest python-yamllint)) - (propagated-inputs - (list python-polib python-pymd4c)) + (base32 "130g8ggy0xgk5jmlx23569wmv9fz7fhm8qi46cjj7n4fxr0vnmyx")))) + (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/"))) + (native-inputs + (list python-pytest + python-setuptools)) + (inputs + (list python-polib + python-pymd4c)) (home-page "https://github.com/mondeja/mdpo") (synopsis "Markdown file translation utilities using pofiles") (description |
