From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dylan Jeffers Subject: Re: [PATCH 2/2] gnu: Add python-kivy Date: Fri, 12 Aug 2016 17:43:16 -0700 Message-ID: <20160812174316.538c463b@openmailbox.org> References: <20160811174118.72b32168@openmailbox.org> <87mvkiv7uv.fsf@netris.org> <20160812172131.62573bde@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/fFlf7d5kHNrsM7A=yBxtE59" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYN3K-00053d-Cb for guix-devel@gnu.org; Fri, 12 Aug 2016 20:43:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYN3G-0003St-6K for guix-devel@gnu.org; Fri, 12 Aug 2016 20:43:53 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:45969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYN3F-0003Sa-OF for guix-devel@gnu.org; Fri, 12 Aug 2016 20:43:50 -0400 In-Reply-To: <20160812172131.62573bde@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mark H Weaver Cc: guix-devel@gnu.org --MP_/fFlf7d5kHNrsM7A=yBxtE59 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 12 Aug 2016 17:21:31 -0700 Dylan Jeffers wrote: > On Fri, 12 Aug 2016 02:06:48 -0400 > Mark H Weaver wrote: >=20 > > Dylan Jeffers writes: > > =20 > > > From 25cd777ff3a2429cbb257e02603d6bef78d1564f Mon Sep 17 00:00:00 > > > 2001 From: Dylan Jeffers > > > Date: Thu, 11 Aug 2016 17:15:47 -0700 > > > Subject: [PATCH] gnu: Add python-kivy. > > > > > > * gnu/packages/python.scm (python-kivy): New variable. > > > * gnu/packages/python.scm (python2-kivy: New variable. =20 > >=20 > > This should be: > >=20 > > * gnu/packages/python.scm (python-kivy, python2-kivy): New > > variables.=20 > > > --- > > > gnu/packages/python.scm | 54 > > > +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, > > > 54 insertions(+) > > > > > > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > > > index 6ff1c5c..9f14e80 100644 > > > --- a/gnu/packages/python.scm > > > +++ b/gnu/packages/python.scm > > > @@ -24,6 +24,7 @@ > > > ;;; Copyright =C2=A9 2016 Sou Bunnbu > > > ;;; Copyright =C2=A9 2016 Troy Sankey > > > ;;; Copyright =C2=A9 2016 ng0 > > > +;;; Copyright =C2=A9 2016 Dylan Jeffers > > > =20 > >=20 > > Your mail client failed to specify UTF-8 encoding for this > > attachment, so the copyright symbols above are coming through as > > pairs of raw octets. We can fix this up manually if needed, but it > > would be great if you could fix your mail client configuration. > > =20 > > > ;;; > > > ;;; This file is part of GNU Guix. > > > ;;; > > > @@ -88,6 +89,9 @@ > > > #:use-module (gnu packages tcl) > > > #:use-module (gnu packages bdw-gc) > > > #:use-module (gnu packages pcre) > > > + #:use-module (gnu packages gstreamer) > > > + #:use-module (gnu packages sdl) > > > + #:use-module (gnu packages gl) > > > #:use-module (guix packages) > > > #:use-module (guix download) > > > #:use-module (guix git-download) > > > @@ -9852,3 +9856,53 @@ etc.") > > > (package > > > (inherit base) > > > (name "ptpython2")))) > > > + > > > +(define-public python-kivy > > > + (let ((commit > > > + "a988c5e7a47da56263ff39514264a3de516ef2fe")) > > > + (package > > > + (name "python-kivy") > > > + (version "1.9.1") > > > + (source > > > + (origin > > > + (method git-fetch) > > > + (uri (git-reference > > > + (url "https://github.com/kivy/kivy") > > > + (commit commit))) > > > + (file-name (string-append name "-" version > > > "-dev.tar.gz")) > > > + (sha256 > > > + (base32 > > > + > > > "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p")))) =20 > >=20 > > This commit does not match the version string. Version 1.9.1 > > corresponds to commit 7e789b24cdb0ee044469d7bc42da9e4146674a18, from > > 1 January 2016, but the commit you've selected is much later, from > > 26 July 2016. > >=20 > > We generally prefer to use tarball releases, unless there is a > > compelling reason to use a non-release commit. > >=20 > > Is there a compelling reason? If not, please use the 1.9.1 release > > tarball from , > > along with the 'file-name' field. =20 >=20 > Yes, the new dev version of kivy has a number of important > enhancements that are not available in 1.9.1. >=20 > > > + (build-system python-build-system) > > > + (arguments > > > + `(#:tests? #f ; Tests require many optional > > > packages > > > + #:phases > > > + (modify-phases %standard-phases > > > + (replace 'build (lambda _ (zero? (system* "make" > > > "force")))) > > > + (add-after 'patch-generated-file-shebangs > > > 'set-sdl-paths > > > + (lambda* (#:key inputs #:allow-other-keys) > > > + (setenv "KIVY_SDL2_PATH" > > > + (string-append (assoc-ref inputs > > > "sdl-union") > > > + "/include/SDL2")) > > > + #t))))) > > > + (native-inputs > > > + `( ("pkg-config" ,pkg-config))) =20 > >=20 > > Please remove the space between the open parentheses above. > > =20 > > > + (inputs > > > + `(("python-cython" ,python-cython) > > > + ("gstreamer" ,gstreamer) > > > + ("mesa" ,mesa) > > > + ("sdl-union" > > > + ,(sdl-union (list sdl2 sdl2-image sdl2-mixer > > > sdl2-ttf))))) > > > + (home-page "http://kivy.org") > > > + (synopsis > > > + "Multitouch application framework") > > > + (description > > > + "A software library for rapid development of > > > +hardware-accelerated multitouch applications.") > > > + (license license:expat)))) > > > + > > > +(define-public python2-kivy > > > + (let ((base (package-with-python2 (strip-python2-variant > > > python-kivy)))) > > > + (package > > > + (inherit base) > > > + (name "python2-kivy")))) =20 > >=20 > > Can you send an updated patch? > >=20 > > Thanks, > > Mark =20 >=20 > Updated python-kivy.patch >=20 > Best, > Dylan Hi again, Just reviewed my patch and realized I could simplify python2-kivy definition. Also I believe I modified my email client (claws) to use UTF-8. Let me know if it is working for you. --MP_/fFlf7d5kHNrsM7A=yBxtE59 Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=python-kivy.patch =46rom e7b7facdc2c9ae7d60bbe54a75a5c9ecc4a38ab9 Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Thu, 11 Aug 2016 17:15:47 -0700 Subject: [PATCH] gnu: Add python-kivy. * gnu/packages/python.scm (python-kivy, python2-kivy): New variables. --- gnu/packages/python.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6ff1c5c..76eef1c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -24,6 +24,7 @@ ;;; Copyright =C2=A9 2016 Sou Bunnbu ;;; Copyright =C2=A9 2016 Troy Sankey ;;; Copyright =C2=A9 2016 ng0 +;;; Copyright =C2=A9 2016 Dylan Jeffers ;;; ;;; This file is part of GNU Guix. ;;; @@ -88,6 +89,9 @@ #:use-module (gnu packages tcl) #:use-module (gnu packages bdw-gc) #:use-module (gnu packages pcre) + #:use-module (gnu packages gstreamer) + #:use-module (gnu packages sdl) + #:use-module (gnu packages gl) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) @@ -9852,3 +9856,50 @@ etc.") (package (inherit base) (name "ptpython2")))) + +(define-public python-kivy + (let ((commit + "a988c5e7a47da56263ff39514264a3de516ef2fe")) + (package + (name "python-kivy") + (version "1.9.1-dev") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kivy/kivy") + (commit commit))) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; Tests require many optional packages + #:phases + (modify-phases %standard-phases + (replace 'build (lambda _ (zero? (system* "make" "force")))) + (add-after 'patch-generated-file-shebangs 'set-sdl-paths + (lambda* (#:key inputs #:allow-other-keys) + (setenv "KIVY_SDL2_PATH" + (string-append (assoc-ref inputs "sdl-union") + "/include/SDL2")) + #t))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("python-cython" ,python-cython) + ("gstreamer" ,gstreamer) + ("mesa" ,mesa) + ("sdl-union" + ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))) + (home-page "http://kivy.org") + (synopsis + "Multitouch application framework") + (description + "A software library for rapid development of +hardware-accelerated multitouch applications.") + (license license:expat)))) + +(define-public python2-kivy + (package-with-python2 python-kivy)) --=20 2.7.3 --MP_/fFlf7d5kHNrsM7A=yBxtE59--