[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: |
Thu, 12 May 2022 14:14:00 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 9e29cf8d73c39fa65a9d4a107b5db614cb88062a
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")
- 123/242: gnu: Add python-sphinx-sitemap., (continued)
- 123/242: gnu: Add python-sphinx-sitemap., guix-commits, 2022/05/12
- 127/242: gnu: Add texlive-cbfonts., guix-commits, 2022/05/12
- 134/242: gnu: Add python-strict-rfc3339., guix-commits, 2022/05/12
- 151/242: gnu: Add python-dictpath., guix-commits, 2022/05/12
- 170/242: gnu: python-types-dataclasses: Fix typo., guix-commits, 2022/05/12
- 171/242: gnu: python-cmarkgfm: Update to 0.8.0., guix-commits, 2022/05/12
- 188/242: gnu: python-ghp-import: Update to 2.0.2., guix-commits, 2022/05/12
- 35/242: gnu: Add python-ufonormalizer., guix-commits, 2022/05/12
- 06/242: gnu: Add python-stack-data., guix-commits, 2022/05/12
- 13/242: gnu: Add texlive-stix2-otf., guix-commits, 2022/05/12
- 21/242: gnu: Add python-opentype-sanitizer.,
guix-commits <=
- 17/242: gnu: Add texlive-cs., guix-commits, 2022/05/12
- 28/242: gnu: Add python-booleanoperations., guix-commits, 2022/05/12
- 29/242: gnu: Add python-fontparts-bootstrap., guix-commits, 2022/05/12
- 32/242: gnu: Add python-fontparts., guix-commits, 2022/05/12
- 47/242: gnu: python-importlib-metadata: Update to 4.11.3., guix-commits, 2022/05/12
- 12/242: gnu: Add texlive-paralist., guix-commits, 2022/05/12
- 31/242: gnu: Add python-defcon., guix-commits, 2022/05/12
- 25/242: gnu: python-fonttools-with-test: Rename to python-fonttools-full., guix-commits, 2022/05/12
- 44/242: gnu: Add python-pytest-enabler-bootstrap., guix-commits, 2022/05/12
- 42/242: gnu: Add python-types-pytz., guix-commits, 2022/05/12