From patchwork Sat Aug 13 00:21:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dylan Jeffers X-Patchwork-Id: 14525 Received: (qmail 16370 invoked by uid 89); 13 Aug 2016 00:22:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, KAM_LOTSOFHASH, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, KAM_LOTSOFHASH, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 13 Aug 2016 00:22:16 +0000 Received: from localhost ([::1]:55387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYMiM-0000RM-UU for patchwork@sourceware.org; Fri, 12 Aug 2016 20:22:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYMiG-0000RG-EG for guix-devel@gnu.org; Fri, 12 Aug 2016 20:22:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYMiC-0008B5-1E for guix-devel@gnu.org; Fri, 12 Aug 2016 20:22:07 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:45316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYMiB-0008Ax-K9 for guix-devel@gnu.org; Fri, 12 Aug 2016 20:22:03 -0400 Received: by mail2.openmailbox.org (Postfix, from userid 1001) id F3E041019EB; Sat, 13 Aug 2016 02:22:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1471047722; bh=Hir9wTRxFBWgTpHGpjL5VLJmTLRtaavr12W4Fr3hIgg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rWXkQTAI1vGAm1ps9G4ESSbnzaAqCiaq6x9aY7tIduOnaQ0czHNj97BpoCsPC0cKG LBfpoRXo/geK+5U7m10HHQM8UpHHUF/z5m3/+BPUGwngdhiW57oWmASYAksMmMgYnb yg/OcON7lLVWUNU+zlFMUp7xOdQ+mBzgtc8tlGCM= Date: Fri, 12 Aug 2016 17:21:31 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1471047720; bh=Hir9wTRxFBWgTpHGpjL5VLJmTLRtaavr12W4Fr3hIgg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ups7JGgaC9ij+TINc9OtEouPm8iz/fiDU9r5QAWeMNvCcztkwpzUnds+jTJmgXbOw kZvsa/uSgMPIWlvWgJl4Kq6W8wYv9/6yxNUe0Ih25sbKe1ZSomm3ZtsFVsku6Wzb3a bU12RvRUKAL63AScoEJOSAztUt6AGHE1WBgZLhHc= From: Dylan Jeffers To: Mark H Weaver Subject: Re: [PATCH 2/2] python-kivy Message-ID: <20160812172131.62573bde@openmailbox.org> In-Reply-To: <87mvkiv7uv.fsf@netris.org> References: <20160811174118.72b32168@openmailbox.org> <87mvkiv7uv.fsf@netris.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-unknown-linux-gnu) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 62.4.1.33 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" On Fri, 12 Aug 2016 02:06:48 -0400 Mark H Weaver wrote: > Dylan Jeffers writes: > > > 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. > > This should be: > > * gnu/packages/python.scm (python-kivy, python2-kivy): New variables. > > > --- > > 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 © 2016 Sou Bunnbu > > ;;; Copyright © 2016 Troy Sankey > > ;;; Copyright © 2016 ng0 > > +;;; Copyright © 2016 Dylan Jeffers > > 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. > > > ;;; > > ;;; 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")))) > > 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. > > We generally prefer to use tarball releases, unless there is a > compelling reason to use a non-release commit. > > Is there a compelling reason? If not, please use the 1.9.1 release > tarball from , > along with the 'file-name' field. Yes, the new dev version of kivy has a number of important enhancements that are not available in 1.9.1. > > + (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))) > > Please remove the space between the open parentheses above. > > > + (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")))) > > Can you send an updated patch? > > Thanks, > Mark Updated python-kivy.patch Best, Dylan From 67b0945f98836cfcac605c366f0ae8f8c8ccab56 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 | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6ff1c5c..84a725d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2016 Sou Bunnbu ;;; Copyright © 2016 Troy Sankey ;;; Copyright © 2016 ng0 +;;; Copyright © 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,53 @@ 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 + (let ((base (package-with-python2 (strip-python2-variant python-kivy)))) + (package + (inherit base) + (name "python2-kivy")))) -- 2.7.3