diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-11-22 21:40:04 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-11-25 21:48:30 +0000 |
| commit | aaf432248faac73ae27c69506151a0b06b4b84db (patch) | |
| tree | cb32966090aef19afd5fb61c2c45793a3c9d27d4 /gnu/packages/fontutils.scm | |
| parent | 5d89feb4a7b7c734f1b13ba1520797219f6833f1 (diff) | |
gnu: python-opentype-sanitizer: Update to 9.2.0.
* gnu/packages/fontutils.scm (python-opentype-sanitizer): Update to 9.2.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add phase 'set-version. Refresh phase
'unbundle-opentype-sanitizer.
[native-inputs]: Add python-setuptools.
Change-Id: I0dd0fae99bf22bbfdc58e3aa4f1f98b6acbc64ea
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/fontutils.scm')
| -rw-r--r-- | gnu/packages/fontutils.scm | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index ab1cfe10047..3b252e5c6a4 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm | |||
| @@ -879,30 +879,35 @@ different scripts and languages.") | |||
| 879 | (define-public python-opentype-sanitizer | 879 | (define-public python-opentype-sanitizer |
| 880 | (package | 880 | (package |
| 881 | (name "python-opentype-sanitizer") | 881 | (name "python-opentype-sanitizer") |
| 882 | (version "8.2.1") | 882 | (version "9.2.0") |
| 883 | (source | 883 | (source |
| 884 | (origin | 884 | (origin |
| 885 | (method url-fetch) | 885 | (method git-fetch) |
| 886 | (uri (pypi-uri "opentype-sanitizer" version)) | 886 | (uri (git-reference |
| 887 | (url "https://github.com/googlefonts/ots-python") | ||
| 888 | (commit (string-append "v" version)))) | ||
| 889 | (file-name (git-file-name name version)) | ||
| 887 | (sha256 | 890 | (sha256 |
| 888 | (base32 "1wjy6chbnj9ic5yjxal6spln5jfzr8cigqs6ab0gj7q60dndrl5k")))) | 891 | (base32 "0ffk99vcwmwpy2wzky1b0vj5j0i9xw67mwk81dzj696f6sws1dkm")))) |
| 889 | (build-system pyproject-build-system) | 892 | (build-system pyproject-build-system) |
| 890 | (arguments | 893 | (arguments |
| 891 | (list | 894 | (list |
| 892 | #:phases | 895 | #:phases |
| 893 | #~(modify-phases %standard-phases | 896 | #~(modify-phases %standard-phases |
| 897 | (add-after 'unpack 'set-version | ||
| 898 | (lambda _ | ||
| 899 | (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) | ||
| 894 | (add-after 'unpack 'unbundle-opentype-sanitizer | 900 | (add-after 'unpack 'unbundle-opentype-sanitizer |
| 895 | (lambda* (#:key inputs #:allow-other-keys) | 901 | (lambda* (#:key inputs #:allow-other-keys) |
| 896 | (delete-file-recursively "src/c") | ||
| 897 | (substitute* "setup.py" | 902 | (substitute* "setup.py" |
| 898 | (("^cmdclass\\[\"download\"].*") "") | 903 | (("^cmdclass\\[\"(download|build_ext|egg_info)\"].*") |
| 899 | (("^cmdclass\\[\"build_ext\"].*") "") | 904 | "")) |
| 900 | (("^cmdclass\\[\"egg_info\"].*") "")) | ||
| 901 | (substitute* "src/python/ots/__init__.py" | 905 | (substitute* "src/python/ots/__init__.py" |
| 902 | (("^OTS_SANITIZE = .*") | 906 | (("^OTS_SANITIZE = .*") |
| 903 | (format #f "OTS_SANITIZE = ~s~%" | 907 | (format #f "OTS_SANITIZE = ~s~%" |
| 904 | (search-input-file inputs "bin/ots-sanitize"))))))))) | 908 | (search-input-file inputs "bin/ots-sanitize"))))))))) |
| 905 | (native-inputs (list python-pytest python-setuptools-scm python-setuptools)) | 909 | (native-inputs |
| 910 | (list python-pytest python-setuptools python-setuptools-scm)) | ||
| 906 | (inputs (list opentype-sanitizer)) | 911 | (inputs (list opentype-sanitizer)) |
| 907 | (home-page "https://github.com/googlefonts/ots-python") | 912 | (home-page "https://github.com/googlefonts/ots-python") |
| 908 | (synopsis "Python wrapper for OpenType Sanitizer") | 913 | (synopsis "Python wrapper for OpenType Sanitizer") |
