[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/13] gnu: Add python-pycairo.
From: |
Eric Bavier |
Subject: |
[PATCH 10/13] gnu: Add python-pycairo. |
Date: |
Thu, 20 Nov 2014 23:41:05 -0600 |
* gnu/packages/python.scm (python-pycairo, python2-py2cairo): New variables.
---
gnu/packages/python.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 59 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a967c74..5698481 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -24,7 +24,7 @@
(define-module (gnu packages python)
#:use-module ((guix licenses)
#:select (asl2.0 bsd-3 bsd-2 bsd-style cc0 expat x11 x11-style
- gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1+ lgpl3+
+ gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+
psfl public-domain))
#:use-module ((guix licenses) #:select (zlib) #:prefix license:)
#:use-module (gnu packages)
@@ -2027,3 +2027,61 @@ a general image processing tool.")
(define-public python2-pillow
(package-with-python2 python-pillow))
+
+(define-public python-pycairo
+ (package
+ (name "python-pycairo")
+ (version "1.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://cairographics.org/releases/pycairo-"
+ version ".tar.bz2"))
+ (sha256
+ (base32
+ "1gjkf8x6hyx1skq3hhwcbvwifxvrf9qxis5vx8x5igmmgs70g94s"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (propagated-inputs ;pycairo.pc references cairo
+ `(("cairo" ,(@ (gnu packages gtk) cairo)))) ;prevent circular references
+ (arguments
+ `(#:tests? #f
+ #:phases (alist-cons-before
+ 'build 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (zero? (system* "./waf" "configure"
+ (string-append "--prefix="
+ (assoc-ref outputs "out")))))
+ (alist-replace
+ 'build
+ (lambda _
+ (zero? (system* "./waf" "build")))
+ (alist-replace
+ 'install
+ (lambda _
+ (zero? (system* "./waf" "install")))
+ %standard-phases)))))
+ (home-page "http://cairographics.org/pycairo/")
+ (synopsis "Python bindings for cairo")
+ (description
+ "Pycairo is a set of Python bindings for the cairo graphics library.")
+ (license lgpl3+)))
+
+(define-public python2-py2cairo
+ (package (inherit python-pycairo)
+ (name "python2-py2cairo")
+ (version "1.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://cairographics.org/releases/py2cairo-"
+ version ".tar.bz2"))
+ (sha256
+ (base32
+ "0cblk919wh6w0pgb45zf48xwxykfif16qk264yga7h9fdkq3j16k"))))
+ (arguments
+ `(#:python ,python-2
+ ,@(package-arguments python-pycairo)))
+ ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
+ (license '(lgpl2.1 mpl1.1))))
--
1.7.9.5
- Re: [PATCH 05/13] gnu: Export ghostscript module symbols up-front., (continued)
- [PATCH 04/13] gnu: Export symbols in (gnu packages image) upfront., Eric Bavier, 2014/11/21
- [PATCH 06/13] gnu: Add python-pillow., Eric Bavier, 2014/11/21
- [PATCH 07/13] gnu: Add python-distutils-extra., Eric Bavier, 2014/11/21
- [PATCH 08/13] gnu: Add python-elib.intl., Eric Bavier, 2014/11/21
- [PATCH 09/13] guix: Add MPL1.1 license., Eric Bavier, 2014/11/21
- [PATCH 10/13] gnu: Add python-pycairo.,
Eric Bavier <=
- [PATCH 11/13] gnu: Add python-pygobject., Eric Bavier, 2014/11/21
- [PATCH 13/13] gnu: Add gourmet., Eric Bavier, 2014/11/21
- [PATCH 12/13] gnu: Add python2-pygtk., Eric Bavier, 2014/11/21
- Re: [PATCH 00/13] Add gourmet (and dependent python packages), Andreas Enge, 2014/11/21