summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-29 17:39:54 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:35:44 +0100
commitbb55c28ea72c50dce53e89a1face13b4f862bc7c (patch)
tree0e3048fbdd0c7c2ce67cfbe06b00f301ec66a0ce
parent9982a88654fd57ab407246e7c9c387b484f05575 (diff)
gnu: python-pycairo: Switch to pyproject-build-system.
* gnu/packages/gtk.scm (python-pycairo): [build-system]: Use pyproject. [arguments] <phases>: Add 'build-extensions. [native-inputs]: Add python-setuptools. Change-Id: I0c5352aaca6e258c7f425e55dfaead3056fe78fe
-rw-r--r--gnu/packages/gtk.scm15
1 files changed, 13 insertions, 2 deletions
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index d229f7827b..757e194889 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -71,6 +71,7 @@
#:use-module (guix build-system meson)
#:use-module (guix build-system perl)
#:use-module (guix build-system python)
+ #:use-module (guix build-system pyproject)
#:use-module (guix build-system waf)
#:use-module (gnu packages)
#:use-module (gnu packages algebra)
@@ -2119,14 +2120,24 @@ printing and other features typical of a source code editor.")
(source
(origin
(method url-fetch)
+ ;; TODO: Try to build from git checkout instead GitHub release tarball.
(uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
version "/pycairo-" version ".tar.gz"))
(sha256
(base32
"1sybz43sj4ynjahlkidrcdpdrq8yi1avkndc2hgb5pgvfjld1p9d"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; XXX: Project provides Meson build as well which may simplify the
+ ;; packaging.
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'build-extensions
+ (lambda _
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs
- (list pkg-config python-pytest))
+ (list pkg-config python-pytest python-setuptools))
(propagated-inputs ;pycairo.pc references cairo
(list cairo))
(home-page "https://cairographics.org/pycairo/")