summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-21 14:39:42 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:47 +0100
commitcaed96ece35917114b35fd8ff9d10f9ed23ca0f3 (patch)
tree5ff49b960fc303462dc650d329dc8a6e2a721660
parent3ef77c2fff37c15b9afd0d7ab6342b0c39415d96 (diff)
gnu: python-ufonormalizer: Update to 0.6.2.
* gnu/packages/fontutils.scm (python-ufonormalizer): Update to 0.6.2. [source]: Switch to git-fetch. [arguments]<#:test-backend>: Set it. <#:phases>: Add phase 'set-version. [native-inputs]: Remove python-pytest. [description]: Improve style. Change-Id: I5fdd6b423f173b4aee2588c9713a61a7d2e87ff3 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/fontutils.scm30
1 files changed, 21 insertions, 9 deletions
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index f0ef93e119..884b9efe60 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -1104,21 +1104,33 @@ tools can generate partial instances.
(define-public python-ufonormalizer
(package
(name "python-ufonormalizer")
- (version "0.6.1")
+ (version "0.6.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "ufonormalizer" version ".zip"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/unified-font-object/ufoNormalizer")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0v5awian2alap7nvxfz38aahyqbqnma16nrqcpr8602hbbki04g6"))))
+ (base32 "1dc2ibk4bgdwhrv9pwmvvgsny4gyf80ncrhakvixd14pz08inafx"))))
(build-system pyproject-build-system)
- (native-inputs (list python-pytest python-setuptools-scm unzip))
+ (arguments
+ (list
+ #:test-backend #~'unittest
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (native-inputs (list python-setuptools python-setuptools-scm unzip))
(home-page "https://github.com/unified-font-object/ufoNormalizer")
(synopsis "Script to normalize @acronym{UFO, Unified Font Object} data")
- (description "The purpose of the @command{ufonormalizer} command is to
-provide a standard formatting so that updates to @acronym{UFO, Unified Font
-Object} data can be usefully versioned. Examples of formatting applied by
-ufoNormalizer include:
+ (description
+ "The purpose of the @command{ufonormalizer} command is to provide a
+standard formatting so that updates to @acronym{UFO, Unified Font Object} data
+can be usefully versioned. Examples of formatting applied by ufoNormalizer
+include:
@itemize
@item Changing floating-point numbers to integers where it doesn't alter the
value (e.g. @samp{x=\"95.0\"} becomes @samp{x=\"95\"})