summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-11-22 20:58:45 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-25 21:48:30 +0000
commit219a2523106cb42e4e7d57cb427f6175912bd5d0 (patch)
tree491f1361529699206d7c8d107611c4ba51e8a647
parentb7bcb900c7985840111daa185119155bbf3817e8 (diff)
gnu: python-glyphsets: Switch to pyproject.
* gnu/packages/fontutils.scm (python-glyphsets): [build-system]: Switch to pyproject-build-system. [source, arguments]: Run guix style. [native-inputs]: Add python-setuptools. Change-Id: I8d09899faf5035ff8be77b3864f7874ad7b86f7a Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/fontutils.scm41
1 files changed, 21 insertions, 20 deletions
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 3d50246a372..f3a30dd68e6 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -845,27 +845,28 @@ to UFOs and DesignSpace files via @code{defcon} and @code{designspaceLib}.")
(package
(name "python-glyphsets")
(version "0.5.2")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "glyphsets" version))
- (sha256
- (base32
- "1dc24i0hkd85gkkg3bqjhagjyw3xsqxazd86yh2l60c1wr5n9y6g"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "glyphsets" version))
+ (sha256
+ (base32 "1dc24i0hkd85gkkg3bqjhagjyw3xsqxazd86yh2l60c1wr5n9y6g"))))
+ (build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'loosen-version-constraints
- (lambda _
- (substitute* "setup.py"
- (("setuptools_scm>=4,<6\\.1")
- "setuptools_scm>=4"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv" "tests/testglyphdata.py")
- (invoke "pytest" "-vv" "tests/testusage.py")))))))
- (native-inputs (list python-pytest python-setuptools-scm))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'loosen-version-constraints
+ (lambda _
+ (substitute* "setup.py"
+ (("setuptools_scm>=4,<6\\.1")
+ "setuptools_scm>=4"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "tests/testglyphdata.py")
+ (invoke "pytest" "-vv" "tests/testusage.py")))))))
+ (native-inputs (list python-pytest python-setuptools-scm python-setuptools))
(propagated-inputs
(list python-defcon python-fonttools-minimal python-glyphslib))
(home-page "https://github.com/googlefonts/glyphsets/")