[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
79/166: gnu: Add python-cffsubr.
From: |
guix-commits |
Subject: |
79/166: gnu: Add python-cffsubr. |
Date: |
Tue, 19 Apr 2022 09:12:22 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit 93a35c52206c2e4bfe8a391491d76079194316a4
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Apr 8 09:01:13 2022 -0400
gnu: Add python-cffsubr.
* gnu/packages/fontutils.scm (python-cffsubr): New variable.
---
gnu/packages/fontutils.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 0c479cd5de..9d170da953 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -271,6 +271,55 @@ but also provides many useful font conversion and analysis
facilities.
@end table")
(license license:asl2.0)))
+(define-public python-cffsubr
+ (package
+ (name "python-cffsubr")
+ (version "0.2.9.post1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "cffsubr" version))
+ (modules '((guix build utils)))
+ (snippet '(delete-file-recursively "external")) ;unbundle ADFKO
+ (sha256
+ (base32 "0p7wyagkmwf4agr6ysgswrpmpifx5rz8dnjbcs2gmj29rwnl2cbb"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-setup.py
+ (lambda _
+ (substitute* '("pyproject.toml"
+ "setup.py")
+ ;; This is not needed when building the package.
+ (("setuptools-git-ls-files") "")
+ ;; Do not attempt to build the unbundled ADFKO.
+ (("cmdclass\\[\"build_ext\"] = ExecutableBuildExt.*")
+ ""))))
+ (add-after 'unpack 'patch-tx-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (define tx (search-input-file inputs "bin/tx"))
+ (substitute* "src/cffsubr/__init__.py"
+ (("TX_EXE = \"tx\"")
+ (format #f "TX_EXE = ~s" tx))
+ ;; Use the full 'tx' file name directly.
+ (("with path\\(__name__, TX_EXE) as tx_cli:")
+ "")
+ ((" (return subprocess.run\\(\\[)str\\(tx_cli)(].*)" _ h t)
+ (format #f "~a~s~a" h tx t)))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (native-inputs (list python-pytest python-setuptools-scm python-wheel))
+ (inputs (list python-afdko))
+ (propagated-inputs (list python-fonttools))
+ (home-page "https://github.com/adobe-type-tools/cffsubr")
+ (synopsis "Compact Font Format (CFF) subroutinizer")
+ (description "This package provides the @command{cffsubr} command, a
+Compact Font Format (CFF) subroutinizer based on the Adobe Font Development
+Kit for OpenType (AFDKO) @command{tx} tool.")
(license license:asl2.0)))
(define-public python-cu2qu
- 30/166: gnu: Add python-fontpens., (continued)
- 30/166: gnu: Add python-fontpens., guix-commits, 2022/04/19
- 80/166: gnu: Add skia., guix-commits, 2022/04/19
- 84/166: gnu: Add python-ufo2ft., guix-commits, 2022/04/19
- 15/166: gnu: Add texlive-makecmds., guix-commits, 2022/04/19
- 53/166: gnu: Add python-jaraco-context., guix-commits, 2022/04/19
- 67/166: gnu: Add python-ubelt., guix-commits, 2022/04/19
- 35/166: gnu: Add python-ufonormalizer., guix-commits, 2022/04/19
- 56/166: gnu: Add python-path., guix-commits, 2022/04/19
- 75/166: gnu: python-scipy: Update to 1.8.0 and enable parallel build., guix-commits, 2022/04/19
- 22/166: gnu: Add python-defcon-bootstrap., guix-commits, 2022/04/19
- 79/166: gnu: Add python-cffsubr.,
guix-commits <=
- 59/166: gnu: Add python-pytest-perf., guix-commits, 2022/04/19
- 90/166: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/04/19
- 63/166: gnu: Add psautohint-font-data., guix-commits, 2022/04/19
- 64/166: gnu: Add psautohint., guix-commits, 2022/04/19
- 93/166: gnu: python-black: Update to 22.3.0., guix-commits, 2022/04/19
- 61/166: gnu: python-faker: Update to 13.3.4 and honor TESTS?., guix-commits, 2022/04/19
- 33/166: gnu: Add python-cu2qu., guix-commits, 2022/04/19
- 62/166: gnu: Add python-pytest-randomly., guix-commits, 2022/04/19
- 105/166: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/04/19
- 118/166: gnu: Add python-nbdime., guix-commits, 2022/04/19