guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 47809a119da1435108db6c809c555fb1e08564d0
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Nov 22 21:05:40 2025 +0100

    gnu: python-mutatormath: Switch to pyproject.
    
    * gnu/packages/fontutils.scm (python-mutatormath):
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:test-backend, #:test-flags>: Set them.
    [native-inputs]: Add python-setuptools.
    [description]: Improve style.
    
    Change-Id: I77fc56a315f80a50a989671c15c8c04ba1e45ee1
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/fontutils.scm | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index bfeaa6809e..3b21d598e1 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -915,20 +915,28 @@ different scripts and languages.")
     (version "3.0.1")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "MutatorMath" version ".zip"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/LettError/MutatorMath";)
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0r1qq45np49x14zz1zwkaayqrn7m8dn2jlipjldg2ihnmpzw29w1"))))
-    (build-system python-build-system)
+        (base32 "1pvkhvafy2zzk8rr2dld866jq000vl2srzh0dw9x5lb6rhxi2f9b"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-backend #~'custom
+      #:test-flags #~(list "Lib/mutatorMath/test/run.py")))
     (propagated-inputs (list python-defcon python-fontmath
                              python-fonttools-minimal))
-    (native-inputs (list unzip))
+    (native-inputs (list python-setuptools unzip))
     (home-page "https://github.com/LettError/MutatorMath";)
     (synopsis "Piecewise linear interpolation Python library")
-    (description "MutatorMath is a Python library for the calculation of
-piecewise linear interpolations in n-dimensions with any number of masters. It
-was developed for interpolating data related to fonts, but if can handle any
-arithmetic object.")
+    (description
+     "MutatorMath is a Python library for the calculation of piecewise linear
+interpolations in n-dimensions with any number of masters. It was developed
+for interpolating data related to fonts, but if can handle any arithmetic
+object.")
     (license license:bsd-3)))
 
 (define-public psautohint-font-data

Reply via email to