[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/242: gnu: Add python-opentype-sanitizer.
From: |
guix-commits |
Subject: |
21/242: gnu: Add python-opentype-sanitizer. |
Date: |
Wed, 11 May 2022 18:02:46 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 8ff413086433ce75dda9a524d2e76eed69d55fc2
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Apr 1 15:28:00 2022 -0400
gnu: Add python-opentype-sanitizer.
* gnu/packages/fontutils.scm (python-opentype-sanitizer): New variable.
---
gnu/packages/fontutils.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 16c2391179..ec6dab37ff 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -131,6 +131,43 @@ files (OTF, TTF) and WOFF and WOFF2 font files, validating
them and sanitizing
them as it goes.")
(license license:bsd-3)))
+(define-public python-opentype-sanitizer
+ (package
+ (name "python-opentype-sanitizer")
+ (version "8.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "opentype-sanitizer" version))
+ (sha256
+ (base32 "1wjy6chbnj9ic5yjxal6spln5jfzr8cigqs6ab0gj7q60dndrl5k"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'unbundle-opentype-sanitizer
+ (lambda* (#:key inputs #:allow-other-keys)
+ (delete-file-recursively "src/c")
+ (substitute* "setup.py"
+ (("^cmdclass\\[\"download\"].*") "")
+ (("^cmdclass\\[\"build_ext\"].*") "")
+ (("^cmdclass\\[\"egg_info\"].*") ""))
+ (substitute* "src/python/ots/__init__.py"
+ (("^OTS_SANITIZE = .*")
+ (format #f "OTS_SANITIZE = ~s~%"
+ (search-input-file inputs "bin/ots-sanitize"))))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (native-inputs (list python-pytest python-setuptools-scm))
+ (inputs (list opentype-sanitizer))
+ (home-page "https://github.com/googlefonts/ots-python")
+ (synopsis "Python wrapper for OpenType Sanitizer")
+ (description "Python wrapper for the OpenType Sanitizer library.")
+ (license license:bsd-3)))
+
(define-public ttfautohint
(package
(name "ttfautohint")
- 27/242: gnu: Add python-fontpens-bootstrap., (continued)
- 27/242: gnu: Add python-fontpens-bootstrap., guix-commits, 2022/05/11
- 33/242: gnu: Add python-cu2qu., guix-commits, 2022/05/11
- 30/242: gnu: Add python-fontpens., guix-commits, 2022/05/11
- 34/242: gnu: Add python-ufoprocessor., guix-commits, 2022/05/11
- 47/242: gnu: python-importlib-metadata: Update to 4.11.3., guix-commits, 2022/05/11
- 55/242: gnu: Add python-pytest-enabler., guix-commits, 2022/05/11
- 52/242: gnu: Add python-jaraco-classes., guix-commits, 2022/05/11
- 64/242: gnu: Add psautohint., guix-commits, 2022/05/11
- 71/242: gnu: python-pytest-cov: Update to 3.0.0., guix-commits, 2022/05/11
- 19/242: gnu: Add python-pcpp., guix-commits, 2022/05/11
- 21/242: gnu: Add python-opentype-sanitizer.,
guix-commits <=
- 36/242: gnu: Add python-types-toml., guix-commits, 2022/05/11
- 38/242: gnu: Add python-jaraco-context-bootstrap., guix-commits, 2022/05/11
- 49/242: gnu: python-mypy: Update to 0.942 and fix search path., guix-commits, 2022/05/11
- 63/242: gnu: Add psautohint-font-data., guix-commits, 2022/05/11
- 20/242: gnu: Add opentype-sanitizer., guix-commits, 2022/05/11
- 25/242: gnu: python-fonttools-with-test: Rename to python-fonttools-full., guix-commits, 2022/05/11
- 13/242: gnu: Add texlive-stix2-otf., guix-commits, 2022/05/11
- 54/242: gnu: Add python-jaraco-functools., guix-commits, 2022/05/11
- 56/242: gnu: Add python-path., guix-commits, 2022/05/11
- 48/242: gnu: python-pytest-black: Update to 0.3.12., guix-commits, 2022/05/11