1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-28 03:51:53 +02:00

gnu: python-glyphslib: Update to 6.6.1.

python-glyphslib 6.6.1 is the last version that works properly with
python-ufo2ft 2.x, see guix/guix#3335.

* gnu/packages/fontutils.scm (python-glyphslib): Update to 6.6.1.
[source] Switch to git-fetch.
[arguments] <#:test-flags>: Enable tests.
<#:phases>: Add 'pretend-version phase.
[native-inputs]: Remove python-wheel.

Change-Id: Ia68015f415cbe6e4bb11b32411b3a5cba0c7a52a
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Hugo Buddelmeijer
2025-10-05 23:59:39 +02:00
committed by Sharlatan Hellseher
parent e81b676b95
commit c3bafa553e
+14 -11
View File
@@ -805,26 +805,29 @@ high-level API is bound.")
(define-public python-glyphslib (define-public python-glyphslib
(package (package
(name "python-glyphslib") (name "python-glyphslib")
(version "6.0.7") (version "6.6.1") ;6.6.1 is the last version that works with ufo2ft 2.x
(source (origin (source (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "glyphsLib" version)) (uri (git-reference
(url "https://github.com/googlefonts/glyphsLib")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0mkkwd09g76hvif603ij5aqicxh47zvhgyyd0pjcjmpdy6dr70yw")))) "193h5ixq9p9m2kwz8srfw61rzgqg6gishlndqm759cymwax0cibi"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:test-flags #~'(;; These fail because the test data has not yet been #:phases
;; updated for newer FontTools: #~(modify-phases %standard-phases
;; https://github.com/googlefonts/glyphsLib/issues/787 (add-before 'build 'pretend-version
;; Re-enable for versions > 6.0.7. ;; The version string is usually derived via setuptools-scm, but
"--ignore=tests/builder/designspace_gen_test.py" ;; without the git metadata available this fails.
"--ignore=tests/builder/interpolation_test.py"))) (lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs (native-inputs
(list python-setuptools-scm (list python-setuptools-scm
python-setuptools python-setuptools
python-wheel
;; For tests. ;; For tests.
python-pytest python-pytest
python-xmldiff)) python-xmldiff))