mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 07:16:39 +01:00
gnu: python-pycairo: Update to 1.16.3.
* gnu/packages/gtk.scm (python-pycairo): Update to 1.16.3. [source]: Remove patch. [build-system]: Switch to python-build-system. [native-inputs]: Remove python-waf. [home-page]: Use HTTPS URI. * gnu/packages/patches/pycairo-wscript.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Unregister it.
This commit is contained in:
parent
7ad5c6dd78
commit
6009cdb4e3
3 changed files with 17 additions and 69 deletions
|
@ -1009,7 +1009,6 @@ dist_patch_DATA = \
|
||||||
%D%/packages/patches/pulseaudio-glibc-2.27.patch \
|
%D%/packages/patches/pulseaudio-glibc-2.27.patch \
|
||||||
%D%/packages/patches/pulseaudio-fix-mult-test.patch \
|
%D%/packages/patches/pulseaudio-fix-mult-test.patch \
|
||||||
%D%/packages/patches/pulseaudio-longer-test-timeout.patch \
|
%D%/packages/patches/pulseaudio-longer-test-timeout.patch \
|
||||||
%D%/packages/patches/pycairo-wscript.patch \
|
|
||||||
%D%/packages/patches/pybugz-encode-error.patch \
|
%D%/packages/patches/pybugz-encode-error.patch \
|
||||||
%D%/packages/patches/pybugz-stty.patch \
|
%D%/packages/patches/pybugz-stty.patch \
|
||||||
%D%/packages/patches/pygpgme-disable-problematic-tests.patch \
|
%D%/packages/patches/pygpgme-disable-problematic-tests.patch \
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
|
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
|
||||||
|
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -1166,32 +1167,22 @@ (define-public gtksourceviewmm
|
||||||
(define-public python-pycairo
|
(define-public python-pycairo
|
||||||
(package
|
(package
|
||||||
(name "python-pycairo")
|
(name "python-pycairo")
|
||||||
(version "1.10.0")
|
(version "1.16.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "http://cairographics.org/releases/pycairo-"
|
(uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
|
||||||
version ".tar.bz2"))
|
version "/pycairo-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1gjkf8x6hyx1skq3hhwcbvwifxvrf9qxis5vx8x5igmmgs70g94s"))
|
"1xq1bwhyi5imca5kvd28szh2rdzi8g0kaspwaqgsbczqskjj3csv"))))
|
||||||
(patches (search-patches "pycairo-wscript.patch"))))
|
(build-system python-build-system)
|
||||||
(build-system waf-build-system)
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
("python-waf" ,python-waf)))
|
("python-pytest" ,python-pytest)))
|
||||||
(propagated-inputs ;pycairo.pc references cairo
|
(propagated-inputs ;pycairo.pc references cairo
|
||||||
`(("cairo" ,cairo)))
|
`(("cairo" ,cairo)))
|
||||||
(arguments
|
(home-page "https://cairographics.org/pycairo/")
|
||||||
`(#:tests? #f
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-before
|
|
||||||
'configure 'patch-waf
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
;; The bundled `waf' doesn't work with python-3.4.x.
|
|
||||||
(copy-file (assoc-ref %build-inputs "python-waf") "./waf"))))))
|
|
||||||
(home-page "http://cairographics.org/pycairo/")
|
|
||||||
(synopsis "Python bindings for cairo")
|
(synopsis "Python bindings for cairo")
|
||||||
(description
|
(description
|
||||||
"Pycairo is a set of Python bindings for the Cairo graphics library.")
|
"Pycairo is a set of Python bindings for the Cairo graphics library.")
|
||||||
|
@ -1199,26 +1190,15 @@ (define-public python-pycairo
|
||||||
(properties `((python2-variant . ,(delay python2-pycairo))))))
|
(properties `((python2-variant . ,(delay python2-pycairo))))))
|
||||||
|
|
||||||
(define-public python2-pycairo
|
(define-public python2-pycairo
|
||||||
(package (inherit (strip-python2-variant python-pycairo))
|
(let ((pycairo (package-with-python2
|
||||||
(name "python2-pycairo")
|
(strip-python2-variant python-pycairo))))
|
||||||
(version "1.10.0")
|
(package
|
||||||
(source
|
(inherit pycairo)
|
||||||
(origin
|
(propagated-inputs
|
||||||
(method url-fetch)
|
`(("python2-funcsigs" ,python2-funcsigs)
|
||||||
(uri (string-append "http://cairographics.org/releases/py2cairo-"
|
,@(package-propagated-inputs pycairo)))
|
||||||
version ".tar.bz2"))
|
;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
|
||||||
(sha256
|
(license (list license:lgpl2.1 license:mpl1.1)))))
|
||||||
(base32
|
|
||||||
"0cblk919wh6w0pgb45zf48xwxykfif16qk264yga7h9fdkq3j16k"))))
|
|
||||||
(arguments
|
|
||||||
`(#:python ,python-2
|
|
||||||
,@(substitute-keyword-arguments (package-arguments python-pycairo)
|
|
||||||
((#:phases phases)
|
|
||||||
`(modify-phases ,phases (delete 'patch-waf)))
|
|
||||||
((#:native-inputs native-inputs)
|
|
||||||
`(alist-delete "python-waf" ,native-inputs)))))
|
|
||||||
;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
|
|
||||||
(license (list license:lgpl2.1 license:mpl1.1))))
|
|
||||||
|
|
||||||
(define-public python2-pygtk
|
(define-public python2-pygtk
|
||||||
(package
|
(package
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
Update the wscript to work with waf-1.8.8. Based on:
|
|
||||||
http://cgit.freedesktop.org/pycairo/commit/?id=c57cd129407c904f8c2f752a59d0183df7b01a5e
|
|
||||||
|
|
||||||
|
|
||||||
--- pycairo-1.10.0.orig/wscript 2011-04-18 15:42:29.000000000 +0800
|
|
||||||
+++ pycairo-1.10.0/wscript 2015-04-20 13:01:45.383756898 +0800
|
|
||||||
@@ -13,18 +13,18 @@
|
|
||||||
|
|
||||||
def options(ctx):
|
|
||||||
print(' %s/options()' %d)
|
|
||||||
- ctx.tool_options('gnu_dirs')
|
|
||||||
- ctx.tool_options('compiler_cc')
|
|
||||||
- ctx.tool_options('python') # options for disabling pyc or pyo compilation
|
|
||||||
+ ctx.load('gnu_dirs')
|
|
||||||
+ ctx.load('compiler_c')
|
|
||||||
+ ctx.load('python') # options for disabling pyc or pyo compilation
|
|
||||||
|
|
||||||
|
|
||||||
def configure(ctx):
|
|
||||||
print(' %s/configure()' %d)
|
|
||||||
|
|
||||||
env = ctx.env
|
|
||||||
- ctx.check_tool('gnu_dirs')
|
|
||||||
- ctx.check_tool('compiler_cc')
|
|
||||||
- ctx.check_tool('python')
|
|
||||||
+ ctx.load('gnu_dirs')
|
|
||||||
+ ctx.load('compiler_c')
|
|
||||||
+ ctx.load('python')
|
|
||||||
ctx.check_python_version((3,1,0))
|
|
||||||
ctx.check_python_headers()
|
|
||||||
ctx.check_cfg(package='cairo', atleast_version=cairo_version_required,
|
|
Loading…
Reference in a new issue