mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: python-afdko: Update to 3.9.4.
* gnu/packages/fontutils.scm (python-afdko): Update to 3.9.4. [source]: Remove patch. [arguments]: Disable a few extra tests in the check phase override. Delete use-system-libxml2 phase. Update patch-problematic-requirements phase. * gnu/packages/patches/python-afdko-suppress-copyright-test.patch: Delete file. * gnu/local.mk (dist_patch_DATA): De-register it.
This commit is contained in:
parent
6b1f324749
commit
2e83aba8cd
3 changed files with 13 additions and 42 deletions
|
@ -1734,7 +1734,6 @@ dist_patch_DATA = \
|
|||
%D%/packages/patches/python-3-fix-tests.patch \
|
||||
%D%/packages/patches/python-3-hurd-configure.patch \
|
||||
%D%/packages/patches/python-3-no-static-lib.patch \
|
||||
%D%/packages/patches/python-afdko-suppress-copyright-test.patch \
|
||||
%D%/packages/patches/python-aionotify-0.2.0-py3.8.patch \
|
||||
%D%/packages/patches/python-argcomplete-1.11.1-fish31.patch \
|
||||
%D%/packages/patches/python-cross-compile.patch \
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
;;; Copyright © 2019, 2020, 2022 Marius Bakke <marius@gnu.org>
|
||||
;;; Copyright © 2020 Roel Janssen <roel@gnu.org>
|
||||
;;; Copyright © 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
||||
;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
|
||||
;;; Copyright © 2022 Felipe Balbi <balbi@kernel.org>
|
||||
;;;
|
||||
|
@ -139,14 +139,13 @@ (define-public opentype-sanitizer
|
|||
(define-public python-afdko
|
||||
(package
|
||||
(name "python-afdko")
|
||||
(version "3.9.1")
|
||||
(version "3.9.4")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "afdko" version))
|
||||
(sha256
|
||||
(base32 "0k1204vykgx32saa495s1lgmz1dixcp8bjiv486imx77killvm02"))
|
||||
(patches (search-patches "python-afdko-suppress-copyright-test.patch"))
|
||||
(base32 "1d3b1590gxlindh1sjhwvxnryn5zil98hgdwbgsr76fd657r3f99"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
#~(begin
|
||||
|
@ -172,27 +171,13 @@ (define-public python-afdko
|
|||
(substitute* "CMakeLists.txt"
|
||||
(("CMAKE_CXX_STANDARD 11")
|
||||
"CMAKE_CXX_STANDARD 17"))))
|
||||
(add-after 'unpack 'use-system-libxml2
|
||||
(lambda _
|
||||
;; XXX: These horrifying substitutions revert this upstream
|
||||
;; PR: <https://github.com/adobe-type-tools/afdko/pull/1527>.
|
||||
;; Hopefully it's only temporary..!
|
||||
(substitute* (find-files "." "^CMakeLists.txt$")
|
||||
(("\\(\\(NOT \\$\\{LibXml2_FOUND\\}\\) OR \
|
||||
\"\\$\\{CMAKE_SYSTEM\\}\" MATCHES \"Linux\"\\)")
|
||||
"(NOT ${LibXml2_FOUND})")
|
||||
(("\\(\\(\\$\\{LibXml2_FOUND\\}\\) AND \
|
||||
\\(NOT \"\\$\\{CMAKE_SYSTEM\\}\" MATCHES \"Linux\"\\)\\)")
|
||||
"(${LibXml2_FOUND})"))
|
||||
(substitute* "cmake/ExternalLibXML2.cmake"
|
||||
(("set\\(LIBXML2_STATIC_INCLUDE_DIR")
|
||||
"set(LIBXML2_INCLUDE_DIR)"))))
|
||||
(add-after 'unpack 'patch-problematic-requirements
|
||||
(lambda _
|
||||
(substitute* "requirements.txt"
|
||||
;; Remove lxml because the version requested here is different
|
||||
;; than the one propagated by the python-fonttools package.
|
||||
(("^lxml==.*") ""))))
|
||||
(("^lxml==.*") "")
|
||||
(("<=4.38.0") ">=4.38.0"))))
|
||||
(add-after 'unpack 'patch-setup.py
|
||||
(lambda _
|
||||
;; There is no use for Python-provided CMake nor Ninja binaries.
|
||||
|
@ -232,7 +217,14 @@ (define-public python-afdko
|
|||
(number->string (parallel-job-count))
|
||||
;; This test is known to fail on multiple architectures.
|
||||
;; https://github.com/adobe-type-tools/afdko/issues/1163
|
||||
"-k not test_type1mm_inputs"))))
|
||||
"-k"
|
||||
(string-append
|
||||
"not test_type1mm_inputs "
|
||||
;; These tests fail for unknown reasons (see:
|
||||
;; https://github.com/adobe-type-tools/afdko/issues/1635).
|
||||
"and not test_rvrn_vf "
|
||||
"and not test_cjk_vf "
|
||||
"and not test_sparse_cjk_vf")))))
|
||||
(add-after 'check 'wrap
|
||||
(assoc-ref %standard-phases 'wrap))
|
||||
(add-before 'wrap 'wrap-PATH
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
Supress copyright check in tests which can differ based on current year.
|
||||
|
||||
https://github.com/adobe-type-tools/afdko/issues/1589
|
||||
|
||||
Adapted from upstream:
|
||||
|
||||
https://github.com/adobe-type-tools/afdko/commit/feebd77d9b6507a0b32f837535511be3c94d9c6f
|
||||
|
||||
diff --git a/tests/tx_test.py b/tests/tx_test.py
|
||||
--- a/tests/tx_test.py
|
||||
+++ b/tests/tx_test.py
|
||||
@@ -1246,7 +1246,7 @@ def test_ufo_fontinfo_parsing(file, msg, ret_code):
|
||||
if (ret_code == 0):
|
||||
expected_path = generate_ps_dump(expected_path)
|
||||
output_path = generate_ps_dump(output_path)
|
||||
- assert differ([expected_path, output_path])
|
||||
+ assert differ([expected_path, output_path, '-s'] + PFA_SKIP)
|
||||
else:
|
||||
arg = [TOOL, '-t1', '-f', ufo_input_path]
|
||||
assert subprocess.call(arg) == 6
|
Loading…
Reference in a new issue