[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
81/242: gnu: Add python-skia-pathops.
From: |
guix-commits |
Subject: |
81/242: gnu: Add python-skia-pathops. |
Date: |
Thu, 12 May 2022 14:14:11 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 25b4c8a0244fdaf0b92b372a9bda81e0bd3adc67
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")
- 222/242: gnu: Add python-beartype., (continued)
- 222/242: gnu: Add python-beartype., guix-commits, 2022/05/12
- 225/242: gnu: python-sphinxext-opengraph: Update to 0.6.3., guix-commits, 2022/05/12
- 226/242: gnu: python-sphinx-rtd-theme: Update to 1.0.0., guix-commits, 2022/05/12
- 57/242: gnu: Add python-pip-run., guix-commits, 2022/05/12
- 10/242: gnu: python-ipython: Update to 8.2.0 [fixes CVE-2022-21699]., guix-commits, 2022/05/12
- 19/242: gnu: Add python-pcpp., guix-commits, 2022/05/12
- 36/242: gnu: Add python-types-toml., guix-commits, 2022/05/12
- 45/242: gnu: Add python-path-bootstrap., guix-commits, 2022/05/12
- 58/242: gnu: Add python-tempora., guix-commits, 2022/05/12
- 75/242: gnu: python-scipy: Update to 1.8.0 and enable parallel build., guix-commits, 2022/05/12
- 81/242: gnu: Add python-skia-pathops.,
guix-commits <=
- 92/242: gnu: Add python-untangle., guix-commits, 2022/05/12
- 107/242: gnu: python-ipyparallel: Update to 8.2.1., guix-commits, 2022/05/12
- 84/242: gnu: Add python-ufo2ft., guix-commits, 2022/05/12
- 80/242: gnu: Add skia., guix-commits, 2022/05/12
- 99/242: gnu: Add python-pytest-forked-next., guix-commits, 2022/05/12
- 119/242: gnu: Add python-docrepr., guix-commits, 2022/05/12
- 128/242: download: Add a mirror for CTAN., guix-commits, 2022/05/12
- 136/242: gnu: Add python-openapi-schema-validator., guix-commits, 2022/05/12
- 237/242: gnu: python-pytest-sanic: Update to 1.9.1., guix-commits, 2022/05/12
- 142/242: gnu: python-httpx: Update to 0.22.0., guix-commits, 2022/05/12