[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/87: gnu: python-afdko: Fix failing tests.
From: |
guix-commits |
Subject: |
15/87: gnu: python-afdko: Fix failing tests. |
Date: |
Mon, 9 Jan 2023 18:27:28 -0500 (EST) |
mbakke pushed a commit to branch staging
in repository guix.
commit 1efe7de0966afe1b96d7e8472d17a9c6142b5043
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Jan 9 03:14:51 2023 +0100
gnu: python-afdko: Fix failing tests.
* gnu/packages/patches/python-afdko-suppress-copyright-test.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/fontutils.scm (python-afdko)[source](patches): New field.
---
gnu/local.mk | 1 +
gnu/packages/fontutils.scm | 1 +
.../python-afdko-suppress-copyright-test.patch | 20 ++++++++++++++++++++
3 files changed, 22 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index 597254f831..721a1ae067 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1715,6 +1715,7 @@ 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 \
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 368aad49d6..72621cc006 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -146,6 +146,7 @@ them as it goes.")
(uri (pypi-uri "afdko" version))
(sha256
(base32 "0k1204vykgx32saa495s1lgmz1dixcp8bjiv486imx77killvm02"))
+ (patches (search-patches "python-afdko-suppress-copyright-test.patch"))
(modules '((guix build utils)))
(snippet
#~(begin
diff --git a/gnu/packages/patches/python-afdko-suppress-copyright-test.patch
b/gnu/packages/patches/python-afdko-suppress-copyright-test.patch
new file mode 100644
index 0000000000..94cd73d5f7
--- /dev/null
+++ b/gnu/packages/patches/python-afdko-suppress-copyright-test.patch
@@ -0,0 +1,20 @@
+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
- 18/87: home: environment-variables: Return support for file-likes and gexps., (continued)
- 18/87: home: environment-variables: Return support for file-likes and gexps., guix-commits, 2023/01/09
- 19/87: home: environment-variables: Fix escaping., guix-commits, 2023/01/09
- 20/87: gnu: Add r-gg3d., guix-commits, 2023/01/09
- 27/87: gnu: Add minetest-wielded-light., guix-commits, 2023/01/09
- 04/87: gnu: java-jgit-4.2: Remove trailing #T from build phase., guix-commits, 2023/01/09
- 05/87: gnu: java-cisd-args4j: Remove trailing #T from build phase., guix-commits, 2023/01/09
- 08/87: gnu: Remove java-ecj-3.5., guix-commits, 2023/01/09
- 10/87: gnu: java-cisd-jhdf5: Remove trailing #T., guix-commits, 2023/01/09
- 11/87: gnu: java-cisd-jhdf5: Do not override default JDK., guix-commits, 2023/01/09
- 14/87: gnu: Remove java-ecj-3., guix-commits, 2023/01/09
- 15/87: gnu: python-afdko: Fix failing tests.,
guix-commits <=
- 21/87: services: base: Add environment support to guix-configuration., guix-commits, 2023/01/09
- 23/87: substitute: Parse '_NIX_OPTIONS' once., guix-commits, 2023/01/09
- 24/87: derivations: 'read-derivation' correctly handles case with empty hash., guix-commits, 2023/01/09
- 25/87: daemon: Improve error message for wrong hash sizes., guix-commits, 2023/01/09
- 26/87: read-print: Do not use extended notation when printing '1+', '1-', etc., guix-commits, 2023/01/09
- 28/87: gnu: Add minetest-mobs-monster., guix-commits, 2023/01/09
- 34/87: gnu: r-rstpm2: Update to 1.5.9., guix-commits, 2023/01/09
- 36/87: gnu: r-timedate: Update to 4022.108., guix-commits, 2023/01/09
- 37/87: gnu: r-mitml: Update to 0.4-4., guix-commits, 2023/01/09
- 31/87: gnu: Add r-httr2., guix-commits, 2023/01/09