[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
74/145: gnu: python-fonttools: Update to 4.28.5.
From: |
guix-commits |
Subject: |
74/145: gnu: python-fonttools: Update to 4.28.5. |
Date: |
Mon, 10 Jan 2022 11:44:11 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit b45e03cd7cd861a07ea80ed23e661cf5f814a8ab
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Dec 21 00:48:01 2021 -0500
gnu: python-fonttools: Update to 4.28.5.
* gnu/packages/python-xyz.scm (python-fonttools): Update to 4.28.5 and hide
the package.
[properties]: New field.
(python-fonttools-with-tests): New variable.
---
gnu/packages/python-xyz.scm | 59 ++++++++++++++++++++++++++++++++-------------
1 file changed, 42 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8b3d1b430e..0ddac0403b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10621,28 +10621,53 @@ single @code{FS} object. This enables, for example,
counting the combined
number of lines in the contained files easily.")
(license license:expat)))
+;;; Tests are left out in the main package to avoid cycles.
(define-public python-fonttools
- (package
- (name "python-fonttools")
- (version "4.6.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "fonttools" version ".zip"))
- (sha256
- (base32
- "1mq9kdzhcsp96bhv7smnrpdg1s4z5wh70bsl99c0jmcrahqdisqq"))))
- (build-system python-build-system)
- (native-inputs
- (list unzip python-pytest python-pytest-runner))
- (home-page "https://github.com/fonttools/fonttools")
- (synopsis "Tools to manipulate font files")
- (description
- "FontTools/TTX is a library to manipulate font files from Python. It
+ (hidden-package
+ (package
+ (name "python-fonttools")
+ (version "4.28.5")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "fonttools" version ".zip"))
+ (sha256
+ (base32
+ "1jhl5n3rfqq7fznvsh6r80n7ylap1a7ppq1040y8cflhyz80ap2l"))))
+ (build-system python-build-system)
+ (native-inputs
+ (list unzip))
+ (arguments '(#:tests? #f))
+ (home-page "https://github.com/fonttools/fonttools")
+ (synopsis "Tools to manipulate font files")
+ (description
+ "FontTools/TTX is a library to manipulate font files from Python. It
supports reading and writing of TrueType/OpenType fonts, reading and writing
of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
from an XML-based format.")
- (license license:expat)))
+ (license license:expat)
+ (properties `((python2-variant . ,(delay python2-fonttools)))))))
+
+(define-public python-fonttools-with-tests
+ (package/inherit python-fonttools
+ (arguments
+ (substitute-keyword-arguments (package-arguments python-fonttools)
+ ((#:tests? _ #f)
+ #t)
+ ((#:phases phases '%standard-phases)
+ `(modify-phases ,phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest"))))))))
+ (native-inputs
+ (modify-inputs (package-inputs python-fonttools)
+ (append python-pytest ;FIXME: indentation is broken
+ python-brotli
+ python-fs
+ python-scipy
+ python-zopfli)))
+ (properties (alist-delete 'hidden? (package-properties
python-fonttools)))))
;; Fonttools 4.x dropped support for Python 2, so stick with 3.x here.
(define-public python2-fonttools
- 17/145: guix: lint: Fix comment per TODO., (continued)
- 17/145: guix: lint: Fix comment per TODO., guix-commits, 2022/01/10
- 28/145: gnu: help2man: Update to 1.48.5., guix-commits, 2022/01/10
- 43/145: gnu: epiphany: Update to 41.2., guix-commits, 2022/01/10
- 40/145: gnu: gnome-backgrounds: Update to 41.0., guix-commits, 2022/01/10
- 44/145: gnu: wayland: Add python to native inputs., guix-commits, 2022/01/10
- 45/145: gnu: wayland-protocols: Add python to native inputs., guix-commits, 2022/01/10
- 49/145: gnu: pangomm: Add python to native inputs., guix-commits, 2022/01/10
- 59/145: gnu: python-curio: Disable newly failing 'test_timeout' test., guix-commits, 2022/01/10
- 52/145: gnu: gtkmm: Add python to native inputs., guix-commits, 2022/01/10
- 55/145: gnu: python-msgpack: Update to 1.0.3., guix-commits, 2022/01/10
- 74/145: gnu: python-fonttools: Update to 4.28.5.,
guix-commits <=
- 56/145: gnu: gjs: Build with meson-0.59 to avoid 'install_dir' error., guix-commits, 2022/01/10
- 81/145: gnu: python-requests-toolbelt: Update to 0.9.1 and enable tests., guix-commits, 2022/01/10
- 93/145: gnu: python-biom-format: Remove obsolete phase., guix-commits, 2022/01/10
- 75/145: gnu: python-matplotlib: Update to 3.5.1 and run tests in parallel., guix-commits, 2022/01/10
- 85/145: gnu: samtools: Update to 1.14., guix-commits, 2022/01/10
- 125/145: gnu: gnome-screenshot: Add python to native inputs., guix-commits, 2022/01/10
- 73/145: gnu: Add python-zopfli., guix-commits, 2022/01/10
- 100/145: gnu: go-github-com-gdamore-tcell: Remove obsolete phase., guix-commits, 2022/01/10
- 47/145: gnu: atkmm: Add python to native inputs., guix-commits, 2022/01/10
- 58/145: gnu: glade3: Add python to native inputs., guix-commits, 2022/01/10