gnu: python-fonttools-full: Rename to python-fonttools.

* gnu/packages/python-xyz.scm (python-fonttools): Rename to...
(python-fonttools-minimal): ... this.
(python-fonttools-full): Adjust references to base package.  Rename to...
(python-fonttools): ... this.
(python-matplotlib):
* gnu/packages/fontutils.scm (python-cu2qu) [propagated-inputs]: Rename
python-fonttools-full to python-fonttools.
(python-ufolib2, python-defcon-bootstrap): Likewise.
* gnu/packages/pdf.scm (weasyprint): Likewise.
* gnu/packages/fonts.scm (font-meera-inimai) Adjust for renamed
python-fonttools-minimal.
* gnu/packages/fontutils.scm (python-cffsubr): Likewise.
(python-compreffor, python-cu2qu, python-fontmath, python-fontpens-bootstrap)
(python-fontparts-bootstrap, python-glyphsets, python-mutatormath)
(python-ufoprocessor, graphite2, python-ufolib2)
(python-defcon-bootstrap): Likewise.
* gnu/packages/graphics.scm (python-booleanoperations): Likewise.
This commit is contained in:
Maxim Cournoyer 2023-04-19 07:58:20 -04:00
parent 00a328847a
commit af015334d1
No known key found for this signature in database
GPG key ID: 1260E46482E63562
5 changed files with 61 additions and 60 deletions

View file

@ -2469,7 +2469,7 @@ (define-public font-meera-inimai
`(("fontforge" ,fontforge)
("harfbuzz" ,harfbuzz "bin")
("python" ,python-minimal)
("python-fonttools" ,python-fonttools)
("python-fonttools-minimal" ,python-fonttools-minimal)
("python-brotli" ,python-brotli)))
(arguments
`(#:make-flags (list "PY=python3"

View file

@ -379,7 +379,7 @@ (define tx (search-input-file inputs "bin/tx"))
(invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest python-setuptools-scm python-wheel))
(inputs (list python-afdko))
(propagated-inputs (list python-fonttools))
(propagated-inputs (list python-fonttools-minimal))
(home-page "https://github.com/adobe-type-tools/cffsubr")
(synopsis "Compact Font Format (CFF) subroutinizer")
(description "This package provides the @command{cffsubr} command, a
@ -409,7 +409,7 @@ (define-public python-compreffor
((", \"setuptools_git_ls_files\"") "")))))))
(native-inputs (list python-pytest python-pytest-runner
python-setuptools-scm))
(propagated-inputs (list python-fonttools))
(propagated-inputs (list python-fonttools-minimal))
(home-page "https://github.com/googlefonts/compreffor")
(synopsis "Compact Font Format (CFF) subroutinizer for fontTools")
(description "This package provides a Compact Font Format (CFF)
@ -427,7 +427,7 @@ (define-public python-cu2qu
(sha256
(base32 "1x762r7bf39g6aivfvrmq00h6f07abvs9x1xm0fz8l81vq8jz64c"))))
(build-system python-build-system)
(propagated-inputs (list python-fonttools-full))
(propagated-inputs (list python-fonttools))
(native-inputs
(list python-cython
python-defcon
@ -484,7 +484,7 @@ (define-public python-fontmath
(sha256
(base32 "070v1jz5f18g15if459ppwswq4w5hzffwp1gvdc5j47bgz5qflva"))))
(build-system python-build-system)
(propagated-inputs (list python-fonttools))
(propagated-inputs (list python-fonttools-minimal))
(native-inputs
(list python-setuptools-scm
python-pytest
@ -510,7 +510,7 @@ (define-public python-fontpens-bootstrap
(base32 "1za15dzsnymq6d9x7xdfqwgw4a3003wj75fn2crhyidkfd2s3nd6"))))
(build-system python-build-system)
(arguments (list #:tests? #f))
(propagated-inputs (list python-fonttools))
(propagated-inputs (list python-fonttools-minimal))
(native-inputs (list unzip))
(home-page "https://github.com/robofab-developers/fontPens")
(synopsis "Python classes implementing the pen protocol")
@ -561,7 +561,7 @@ (define-public python-fontparts-bootstrap
(list python-booleanoperations
python-defcon-bootstrap
python-fontmath
python-fonttools))
python-fonttools-minimal))
(native-inputs (list python-setuptools-scm unzip))
(home-page "https://github.com/robotools/fontParts")
(synopsis "Library for interacting with font parts")
@ -645,7 +645,7 @@ (define-public python-glyphsets
(invoke "pytest" "-vv" "tests/testusage.py")))))))
(native-inputs (list python-pytest python-setuptools-scm))
(propagated-inputs
(list python-defcon python-fonttools python-glyphslib))
(list python-defcon python-fonttools-minimal python-glyphslib))
(home-page "https://github.com/googlefonts/glyphsets/")
(synopsis "Evaluate coverage of glyph sets")
(description
@ -701,7 +701,8 @@ (define-public python-mutatormath
(sha256
(base32 "0r1qq45np49x14zz1zwkaayqrn7m8dn2jlipjldg2ihnmpzw29w1"))))
(build-system python-build-system)
(propagated-inputs (list python-defcon python-fontmath python-fonttools))
(propagated-inputs (list python-defcon python-fontmath
python-fonttools-minimal))
(native-inputs (list unzip))
(home-page "https://github.com/LettError/MutatorMath")
(synopsis "Piecewise linear interpolation Python library")
@ -869,7 +870,7 @@ (define-public python-ufoprocessor
(list python-defcon
python-fontmath
python-fontparts
python-fonttools
python-fonttools-minimal
python-mutatormath))
(native-inputs (list python-setuptools-scm unzip))
(home-page "https://github.com/LettError/ufoProcessor")
@ -1331,7 +1332,7 @@ (define-public graphite2
"01jzhwnj1c3d68dmw15jdxly0hwkmd8ja4kw755rbkykn1ly2qyx"))))
(build-system cmake-build-system)
(native-inputs
(list python python-fonttools))
(list python python-fonttools-minimal))
(inputs
(list freetype))
(synopsis "Reimplementation of the SIL Graphite text processing engine")
@ -1611,7 +1612,7 @@ (define-public python-ufolib2
(build-system pyproject-build-system)
(native-inputs
(list python-pytest python-setuptools-scm))
(propagated-inputs (list python-attrs python-fonttools-full))
(propagated-inputs (list python-attrs python-fonttools))
(home-page "https://github.com/fonttools/ufoLib2")
(synopsis "Unified Font Object (UFO) font processing library")
(description "The ufoLib2 Python library is meant to be a thin
@ -1635,7 +1636,7 @@ (define-public python-defcon-bootstrap
(sha256
(base32 "0i1a306b8c42dpbplwxj6ili2aac5lwq2ir6r1jswicysvk9dqxf"))))
(build-system python-build-system)
(propagated-inputs (list python-fontpens-bootstrap python-fonttools-full))
(propagated-inputs (list python-fontpens-bootstrap python-fonttools))
(native-inputs
(list python-pytest
python-pytest-runner

View file

@ -938,7 +938,7 @@ (define-public python-booleanoperations
(sha256
(base32 "1f41lb19m8azchl1aqz6j5ycbspb8jsf1cnn42hlydxd68f85ylc"))))
(build-system python-build-system)
(propagated-inputs (list python-fonttools python-pyclipper))
(propagated-inputs (list python-fonttools-minimal python-pyclipper))
(native-inputs
(list python-defcon-bootstrap
python-fontpens-bootstrap

View file

@ -1615,7 +1615,7 @@ (define-public weasyprint
python-cairosvg
python-cffi
python-cssselect2
python-fonttools-full
python-fonttools
python-html5lib
python-pillow
python-pydyf

View file

@ -7149,7 +7149,7 @@ (define-public python-matplotlib
python-certifi
python-cycler
python-dateutil
python-fonttools
python-fonttools-minimal
python-kiwisolver
python-numpy
python-packaging
@ -12188,10 +12188,10 @@ (define-public python-fs
(license license:expat)))
;;; Tests are left out in the main package to avoid cycles.
(define-public python-fonttools
(define-public python-fonttools-minimal
(hidden-package
(package
(name "python-fonttools")
(name "python-fonttools-minimal")
(version "4.39.3")
(source (origin
(method url-fetch)
@ -12213,48 +12213,48 @@ (define-public python-fonttools
from an XML-based format.")
(license license:expat))))
;;; Rename 'python-fonttools' in next cycle, renaming the current
;;; 'python-fonttools' to 'python-fonttools-minimal'.
(define-public python-fonttools-full
(package/inherit python-fonttools
(arguments
(substitute-keyword-arguments (package-arguments python-fonttools)
((#:tests? _ #f)
(not (%current-target-system)))
((#:phases phases '%standard-phases)
`(modify-phases ,phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
"-k"
;; XXX: These tests need .trm files that are
;; not shipped with the PyPI release.
(format #f "not ~a"
(string-join
'("test_read_fontdimens_mathsy"
"test_read_fontdimens_mathex"
"test_read_fontdimens_vanilla"
"test_read_boundary_char"
"fontTools.tfmLib"
;; The MtiTest tests fail for unknown
;; reasons (see:
;; https://github.com/fonttools/
;; fonttools/issues/3078)
"MtiTest")
" and not "))))))))))
(native-inputs
(modify-inputs (package-native-inputs python-fonttools)
(append python-pytest)))
(propagated-inputs
(list python-brotli
python-fs
python-lxml
python-lz4
python-scipy
python-unicodedata2
python-zopfli))
(properties (alist-delete 'hidden? (package-properties python-fonttools)))))
(define-public python-fonttools
(let ((base python-fonttools-minimal))
(package/inherit base
(name "python-fonttools")
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:tests? _ #f)
(not (%current-target-system)))
((#:phases phases '%standard-phases)
`(modify-phases ,phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
"-k"
;; XXX: These tests need .trm files that are
;; not shipped with the PyPI release.
(format #f "not ~a"
(string-join
'("test_read_fontdimens_mathsy"
"test_read_fontdimens_mathex"
"test_read_fontdimens_vanilla"
"test_read_boundary_char"
"fontTools.tfmLib"
;; The MtiTest tests fail for unknown
;; reasons (see:
;; https://github.com/fonttools/
;; fonttools/issues/3078)
"MtiTest")
" and not "))))))))))
(native-inputs
(modify-inputs (package-native-inputs base)
(append python-pytest)))
(propagated-inputs
(list python-brotli
python-fs
python-lxml
python-lz4
python-scipy
python-unicodedata2
python-zopfli))
(properties (alist-delete 'hidden? (package-properties base))))))
(define-public python-ly
(package