summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/fontutils.scm42
-rw-r--r--gnu/packages/gnome-xyz.scm1
-rw-r--r--gnu/packages/python-xyz.scm41
3 files changed, 43 insertions, 41 deletions
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 294a2f2c38..9d9fe804f1 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -14,6 +14,7 @@
;;; Copyright © 2020, 2021, 2024 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2021-2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
+;;; Copyright © 2022 Eric Bavier <bavier@posteo.net>
;;; Copyright © 2022 Felipe Balbi <balbi@kernel.org>
;;; Copyright © 2023 gemmaro <gemmaro.dev@gmail.com>
;;; Copyright © 2023 John Kehayias <john.kehayias@protonmail.com>
@@ -684,6 +685,47 @@ process. FontParts is the successor of RoboFab.")
(alist-delete 'hidden?
(package-properties python-fontparts-bootstrap)))))
+(define-public python-freetype-py
+ (package
+ (name "python-freetype-py")
+ (version "2.5.1")
+ (source
+ (origin
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/rougier/freetype-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0cls0469zfqzwpq6k4pxa9vrczsqabqk4qh7444xybcyq9qgs1lp"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags #~(list "tests")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-lib-paths
+ (lambda _
+ (substitute* "freetype/raw.py"
+ (("ctypes.util.find_library\\('freetype'\\)")
+ (format #f "'~a/~a'" #$(this-package-input "freetype")
+ "lib/libfreetype.so")))))
+ (add-before 'build 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (inputs
+ (list freetype))
+ (home-page "https://github.com/rougier/freetype-py")
+ (synopsis "Freetype python bindings")
+ (description
+ "Freetype Python provides bindings for the FreeType library. Only the
+high-level API is bound.")
+ (license license:bsd-3)))
+
(define-public python-glyphslib
(package
(name "python-glyphslib")
diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm
index e7a23336d4..b50f4f8c23 100644
--- a/gnu/packages/gnome-xyz.scm
+++ b/gnu/packages/gnome-xyz.scm
@@ -64,6 +64,7 @@
#:use-module (gnu packages bash)
#:use-module (gnu packages build-tools)
#:use-module (gnu packages check)
+ #:use-module (gnu packages fontutils)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gl)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 84de163ab5..657089bbcd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -33283,47 +33283,6 @@ dumping of JSON5 data structures.")
Foundation maintained libraries.")
(license license:expat)))
-(define-public python-freetype-py
- (package
- (name "python-freetype-py")
- (version "2.5.1")
- (source
- (origin
- (method git-fetch) ;no tests in PyPI archive
- (uri (git-reference
- (url "https://github.com/rougier/freetype-py")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0cls0469zfqzwpq6k4pxa9vrczsqabqk4qh7444xybcyq9qgs1lp"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:test-flags #~(list "tests")
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'patch-lib-paths
- (lambda _
- (substitute* "freetype/raw.py"
- (("ctypes.util.find_library\\('freetype'\\)")
- (format #f "'~a/~a'" #$(this-package-input "freetype")
- "lib/libfreetype.so")))))
- (add-before 'build 'set-version
- (lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
- (native-inputs
- (list python-pytest
- python-setuptools
- python-setuptools-scm))
- (inputs
- (list freetype))
- (home-page "https://github.com/rougier/freetype-py")
- (synopsis "Freetype python bindings")
- (description
- "Freetype Python provides bindings for the FreeType library. Only the
-high-level API is bound.")
- (license license:bsd-3)))
-
(define-public python-frozendict
(package
(name "python-frozendict")