[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55104] [PATCH 021/232] gnu: Add python-opentype-sanitizer.
From: |
Maxim Cournoyer |
Subject: |
[bug#55104] [PATCH 021/232] gnu: Add python-opentype-sanitizer. |
Date: |
Sun, 24 Apr 2022 23:55:47 -0400 |
* 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 @@ (define-public opentype-sanitizer
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")
--
2.34.0
- [bug#55104] [PATCH 036/232] gnu: Add python-types-toml., (continued)
- [bug#55104] [PATCH 036/232] gnu: Add python-types-toml., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 048/232] gnu: python-pytest-black: Update to 0.3.12., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 008/232] gnu: python-jinja2: Update to 3.1.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 006/232] gnu: Add python-stack-data., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 007/232] gnu: python-traitlets: Update to 5.1.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 010/232] gnu: python-ipython: Update to 8.2.0 [fixes CVE-2022-21699]., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 042/232] gnu: Add python-types-pytz., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 018/232] gnu: Add texlive-zref., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 016/232] gnu: Add texlive-csplain., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 022/232] gnu: Add python-defcon-bootstrap., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 021/232] gnu: Add python-opentype-sanitizer.,
Maxim Cournoyer <=
- [bug#55104] [PATCH 035/232] gnu: Add python-ufonormalizer., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 032/232] gnu: Add python-fontparts., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 038/232] gnu: Add python-jaraco-context-bootstrap., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 043/232] gnu: Add python-pytest-freezegun., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 075/232] gnu: python-scipy: Update to 1.8.0 and enable parallel build., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 083/232] gnu: Add python-compreffor., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 011/232] gnu: python-nbformat: Update to 5.3.0., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 013/232] gnu: Add texlive-stix2-otf., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 012/232] gnu: Add texlive-paralist., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 014/232] gnu: Add texlive-metalogo., Maxim Cournoyer, 2022/04/25