guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit bd43dd3ec1a26b2f5553c2657a0129cc36f7c0c9
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Sep 21 14:15:44 2025 +0200
gnu: python-fontmath: Switch to git-fetch.
* gnu/packages/fontutils.scm (python-fontmath):
[source]: Switch to git-fetch.
[arguments]<#:phases>: Add 'set-version phase.
Change-Id: I11f79c33b260819b6087e96665bcff188ab060f6
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/fontutils.scm | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 4e5dc839b2..5eb45da2dd 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -619,11 +619,21 @@ to generate OpenType font binaries from Unified Font
Objects (UFOs).")
(version "0.9.4")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "fontMath" version ".zip"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/robotools/fontMath")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "197dgbnhg6n937ifsi3w9dm283wi3nwp35y4qc2i6kkqkl61kn8z"))))
+ (base32 "0g8vpwn4flg0rj7ar8wl9xlpjhcgiz01p56fzkjdlf2jqb36akyy"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(propagated-inputs (list python-fonttools-minimal))
(native-inputs
(list python-pytest