aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/fontutils.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-04-01 16:40:43 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-05-12 12:45:24 -0400
commitdc5cf89205182f7538858993cc603d56aa231035 (patch)
tree9dfe35e8c2d4ac68449df045a42c2417dd20ccb8 /gnu/packages/fontutils.scm
parent2c7e76ed1413fc564e8ce9a7ea7b480a4d74d74a (diff)
downloadguix-dc5cf89205182f7538858993cc603d56aa231035.tar
guix-dc5cf89205182f7538858993cc603d56aa231035.tar.gz
gnu: Add python-fontmath.
* gnu/packages/fontutils.scm (python-fontmath): New variable.
Diffstat (limited to 'gnu/packages/fontutils.scm')
-rw-r--r--gnu/packages/fontutils.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 61b39e510d..8870b87abb 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -57,6 +57,7 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-build)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages webkit)
@@ -131,6 +132,30 @@ files (OTF, TTF) and WOFF and WOFF2 font files, validating them and sanitizing
them as it goes.")
(license license:bsd-3)))
+(define-public python-fontmath
+ (package
+ (name "python-fontmath")
+ (version "0.9.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "fontMath" version ".zip"))
+ (sha256
+ (base32 "001756zxn2386dm4svgqjgw5026hvyacxl09b2qlk7s06phpcphw"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-fonttools))
+ (native-inputs
+ (list python-setuptools-scm
+ python-pytest
+ python-pytest-runner
+ python-wheel
+ unzip))
+ (home-page "https://github.com/robotools/fontMath")
+ (synopsis "Fast font mathematical operations library")
+ (description "This package provides a set of objects for performing fast
+font, glyph, etc. mathematical operations on font data.")
+ (license license:expat)))
+
(define-public python-opentype-sanitizer
(package
(name "python-opentype-sanitizer")