[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55104] [PATCH 081/232] gnu: Add python-skia-pathops.
From: |
Maxim Cournoyer |
Subject: |
[bug#55104] [PATCH 081/232] gnu: Add python-skia-pathops. |
Date: |
Sun, 24 Apr 2022 23:56:47 -0400 |
* 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 @@ (define-public psautohint
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")
--
2.34.0
- [bug#55104] [PATCH 070/232] gnu: python-pytest-shutil: Adjust to use python-path., (continued)
- [bug#55104] [PATCH 070/232] gnu: python-pytest-shutil: Adjust to use python-path., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 074/232] gnu: python-scipy: Move input fields below arguments field., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 082/232] gnu: Add python-ufolib2., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 076/232] gnu: Add java-antlr4-runtime-cpp., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 084/232] gnu: Add python-ufo2ft., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 097/232] gnu: Add python-debugpy., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 030/232] gnu: Add python-fontpens., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 031/232] gnu: Add python-defcon., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 052/232] gnu: Add python-jaraco-classes., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 072/232] gnu: Add python-scikit-build., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 081/232] gnu: Add python-skia-pathops.,
Maxim Cournoyer <=
- [bug#55104] [PATCH 000/232] Update IPython to latest, fix texlive-polyglossia, add more, Lars-Dominik Braun, 2022/04/25
- [bug#55104] [PATCH 000/232] Update IPython to latest, fix texlive-polyglossia, add more, Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 000/232] Update IPython to latest, fix texlive-polyglossia, add more, Lars-Dominik Braun, 2022/04/26
- [bug#55104] [PATCH 000/232] Update IPython to latest, fix texlive-polyglossia, add more, Maxim Cournoyer, 2022/04/26
- [bug#55104] [PATCH 000/232] Update IPython to latest, fix texlive-polyglossia, add more, Lars-Dominik Braun, 2022/04/27
- [bug#55104] [PATCH 000/232] Update IPython to latest, fix texlive-polyglossia, add more, zimoun, 2022/04/26
[bug#55104] [PATCH 000/232] Update IPython to latest, fix texlive-polyglossia, add more, Julien Lepiller, 2022/04/25