[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/232: gnu: Add python-opentype-sanitizer.
From: |
guix-commits |
Subject: |
21/232: gnu: Add python-opentype-sanitizer. |
Date: |
Sun, 24 Apr 2022 23:58:26 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit d365d8eefb9f1d7026f4d1063dc0f5b1b5bd2471
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")
- 02/232: gnu: python-astroid: Propagate python-typing-extensions., (continued)
- 02/232: gnu: python-astroid: Propagate python-typing-extensions., guix-commits, 2022/04/24
- 03/232: gnu: Add python-pure-eval., guix-commits, 2022/04/24
- 04/232: gnu: Add python-asttokens., guix-commits, 2022/04/24
- 06/232: gnu: Add python-stack-data., guix-commits, 2022/04/24
- 09/232: gnu: python-prompt-toolkit: Update to 3.0.29., guix-commits, 2022/04/24
- 08/232: gnu: python-jinja2: Update to 3.1.1., guix-commits, 2022/04/24
- 10/232: gnu: python-ipython: Update to 8.2.0 [fixes CVE-2022-21699]., guix-commits, 2022/04/24
- 20/232: gnu: Add opentype-sanitizer., guix-commits, 2022/04/24
- 11/232: gnu: python-nbformat: Update to 5.3.0., guix-commits, 2022/04/24
- 12/232: gnu: Add texlive-paralist., guix-commits, 2022/04/24
- 21/232: gnu: Add python-opentype-sanitizer.,
guix-commits <=
- 07/232: gnu: python-traitlets: Update to 5.1.1., guix-commits, 2022/04/24
- 01/232: gnu: python-ipython: Re-order fields., guix-commits, 2022/04/24
- 05/232: gnu: Add python-littleutils., guix-commits, 2022/04/24
- 13/232: gnu: Add texlive-stix2-otf., guix-commits, 2022/04/24
- 14/232: gnu: Add texlive-metalogo., guix-commits, 2022/04/24
- 16/232: gnu: Add texlive-csplain., guix-commits, 2022/04/24
- 22/232: gnu: Add python-defcon-bootstrap., guix-commits, 2022/04/24
- 32/232: gnu: Add python-fontparts., guix-commits, 2022/04/24
- 36/232: gnu: Add python-types-toml., guix-commits, 2022/04/24
- 44/232: gnu: Add python-pytest-enabler-bootstrap., guix-commits, 2022/04/24