[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
79/242: gnu: Add python-cffsubr.
From: |
guix-commits |
Subject: |
79/242: gnu: Add python-cffsubr. |
Date: |
Thu, 12 May 2022 14:14:10 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 7e2d11f417861811428d61808d523808048fa80b
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
- 40/242: gnu: Add python-autocommand., (continued)
- 40/242: gnu: Add python-autocommand., guix-commits, 2022/05/12
- 37/242: gnu: Add python-pytest-mypy., guix-commits, 2022/05/12
- 50/242: gnu: Add python-types-docutils., guix-commits, 2022/05/12
- 48/242: gnu: python-pytest-black: Update to 0.3.12., guix-commits, 2022/05/12
- 54/242: gnu: Add python-jaraco-functools., guix-commits, 2022/05/12
- 61/242: gnu: python-faker: Update to 13.3.4 and honor TESTS?., guix-commits, 2022/05/12
- 68/242: gnu: python-setuptools: Update to 62.0.0., guix-commits, 2022/05/12
- 70/242: gnu: python-pytest-shutil: Adjust to use python-path., guix-commits, 2022/05/12
- 64/242: gnu: Add psautohint., guix-commits, 2022/05/12
- 73/242: gnu: python-jupyter-packaging: Update to 0.12.0, run test suite., guix-commits, 2022/05/12
- 79/242: gnu: Add python-cffsubr.,
guix-commits <=
- 23/242: gnu: Add python-fontmath., guix-commits, 2022/05/12
- 74/242: gnu: python-scipy: Move input fields below arguments field., guix-commits, 2022/05/12
- 76/242: gnu: Add java-antlr4-runtime-cpp., guix-commits, 2022/05/12
- 82/242: gnu: Add python-ufolib2., guix-commits, 2022/05/12
- 100/242: gnu: python-pytest-xdist-next: Update to 2.5.0., guix-commits, 2022/05/12
- 94/242: gnu: pylint: Run tests in parallel., guix-commits, 2022/05/12
- 111/242: gnu: Add texlive-unicode-math., guix-commits, 2022/05/12
- 103/242: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/05/12
- 38/242: gnu: Add python-jaraco-context-bootstrap., guix-commits, 2022/05/12
- 77/242: gnu: Add python-fonttools-next., guix-commits, 2022/05/12