From 1e02c28a2ab5419fca9dd0e82913955b93d7750a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 8 Apr 2022 22:49:17 -0400 Subject: [PATCH] gnu: Add python-compreffor. * gnu/packages/fontutils.scm (python-compreffor): New variable. --- gnu/packages/fontutils.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index 3d8447703f..8ba435aa61 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -322,6 +322,35 @@ (define tx (search-input-file inputs "bin/tx")) Kit for OpenType (AFDKO) @command{tx} tool.") (license license:asl2.0))) +(define-public python-compreffor + (package + (name "python-compreffor") + (version "0.5.1.post1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "compreffor" version)) + (sha256 + (base32 "1r3wqd67qnz8p6irv68mvadqv1nklgzw53376iarw3pq4gxrma36")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-setup.py + (lambda _ + (substitute* "setup.py" + ;; Not actually needed. + ((", \"setuptools_git_ls_files\"") ""))))))) + (native-inputs (list python-pytest python-pytest-runner + python-setuptools-scm)) + (propagated-inputs (list python-fonttools)) + (home-page "https://github.com/googlefonts/compreffor") + (synopsis "Compact Font Format (CFF) subroutinizer for fontTools") + (description "This package provides a Compact Font Format (CFF) +subroutinizer for fontTools.") + (license license:asl2.0))) + (define-public python-cu2qu (package (name "python-cu2qu")