[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
81/166: gnu: Add python-skia-pathops.
From: |
guix-commits |
Subject: |
81/166: gnu: Add python-skia-pathops. |
Date: |
Tue, 19 Apr 2022 09:18:00 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit 658be9ccdc65e11d48ad767ccbf2a46418ed13fc
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Apr 8 21:56:09 2022 -0400
gnu: Add python-skia-pathops.
* gnu/packages/fontutils.scm (python-skia-pathops): New variable.
---
gnu/packages/fontutils.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 9d170da953..f2a76b9492 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -573,6 +573,50 @@ suite of the @code{psautohint} package.")
can be used to hint PostScript fonts. A Python wrapper is also included.")
(license license:asl2.0)))
+(define-public python-skia-pathops
+ (package
+ (name "python-skia-pathops")
+ (version "0.7.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "skia-pathops" version ".zip"))
+ (modules '((guix build utils)))
+ (snippet '(delete-file-recursively "src/cpp")) ;140+ MiB of stuff
+ (sha256
+ (base32 "1456rclfn6a01c2cchlgyn166zppcjcqij0k5gwmm8gvzsd5rn0r"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'configure-env
+ (lambda _
+ (setenv "BUILD_SKIA_FROM_SOURCE" "0")))
+ (add-after 'unpack 'adjust-c++-language
+ (lambda _
+ ;; Our version of Skia requires c++17.
+ (substitute* "setup.py"
+ (("-std=c\\+\\+14")
+ "-std=c++17"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (native-inputs
+ (list pkg-config
+ python-cython
+ python-pytest
+ python-setuptools-scm
+ unzip))
+ (inputs (list skia))
+ (home-page "https://github.com/fonttools/skia-pathops")
+ (synopsis "Python bindings for the Skia library's Path Ops module")
+ (description "This package provides Python bindings for the Path Ops
+module of the Skia library, performing boolean operations on
+paths (intersection, union, difference, xor).")
+ (license license:bsd-3)))
+
(define-public python-ufoprocessor
(package
(name "python-ufoprocessor")
- 59/166: gnu: Add python-pytest-perf., (continued)
- 59/166: gnu: Add python-pytest-perf., guix-commits, 2022/04/19
- 61/166: gnu: python-faker: Update to 13.3.4 and honor TESTS?., guix-commits, 2022/04/19
- 62/166: gnu: Add python-pytest-randomly., guix-commits, 2022/04/19
- 64/166: gnu: Add psautohint., guix-commits, 2022/04/19
- 65/166: gnu: Add python-ordered-set., guix-commits, 2022/04/19
- 71/166: gnu: python-pytest-cov: Update to 3.0.0., guix-commits, 2022/04/19
- 72/166: gnu: Add python-scikit-build., guix-commits, 2022/04/19
- 77/166: gnu: Add python-fonttools-next., guix-commits, 2022/04/19
- 78/166: gnu: Add python-afdko., guix-commits, 2022/04/19
- 79/166: gnu: Add python-cffsubr., guix-commits, 2022/04/19
- 81/166: gnu: Add python-skia-pathops.,
guix-commits <=
- 85/166: gnu: Add python-sfdlib., guix-commits, 2022/04/19
- 88/166: gnu: Add texlive-bidi., guix-commits, 2022/04/19
- 93/166: gnu: python-black: Update to 22.3.0., guix-commits, 2022/04/19
- 94/166: gnu: pylint: Run tests in parallel., guix-commits, 2022/04/19
- 26/166: gnu: Add python-mutatormath., guix-commits, 2022/04/19
- 27/166: gnu: Add python-fontpens-bootstrap., guix-commits, 2022/04/19
- 33/166: gnu: Add python-cu2qu., guix-commits, 2022/04/19
- 36/166: gnu: Add python-types-toml., guix-commits, 2022/04/19
- 18/166: gnu: Add texlive-zref., guix-commits, 2022/04/19
- 25/166: gnu: python-fonttools-with-test: Rename to python-fonttools-full., guix-commits, 2022/04/19