From f15ce6a6050543ad6da623dd5758c114ec95fd60 Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Fri, 22 Jul 2016 17:06:11 -0400 Subject: [PATCH] gnu: Add python-pygame. * gnu/packages/game-development.scm (python-pygame): Add python-pygame. --- gnu/packages/game-development.scm | 44 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 7067a71..e3ecc79 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -31,6 +31,7 @@ #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages curl) #:use-module (gnu packages databases) @@ -41,6 +42,7 @@ #:use-module (gnu packages gnunet) #:use-module (gnu packages guile) #:use-module (gnu packages multiprecision) + #:use-module (gnu packages music) #:use-module (gnu packages ncurses) #:use-module (gnu packages qt) #:use-module (gnu packages compression) @@ -60,7 +62,8 @@ #:use-module (gnu packages xiph) #:use-module (gnu packages lua) #:use-module (gnu packages mp3) - #:use-module (gnu packages xml)) + #:use-module (gnu packages xml) + #:use-module (gnu packages video)) (define-public bullet (package @@ -512,3 +515,42 @@ It offers the following features: OpenGL programs with character rendering services via an application programming interface (API).") (license (list license:expat license:lgpl2.1+)))) + + +(define-public python-pygame + (package + (name "python-pygame") + (version "1.9.1") + (source (origin + (method url-fetch) + (uri (string-append "http://www.pygame.org/ftp/pygame-" + version "release.tar.gz")) + (sha256 + (base32 + "0cyl0ww4fjlf289pjxa53q4klyn55ajvkgymw0qrdgp4593raq52")))) + (build-system python-build-system) + (inputs `(("libpng" ,libpng) + ("libjpeg" ,libjpeg) + ("libsmpeg" ,libsmpeg) + ("portmidi" ,portmidi) + ("sdl" ,sdl) + ("sdl-ttf" ,sdl-ttf) + ("sdl-image" ,sdl-image) + ("sdl-mixer" ,sdl-mixer))) + (home-page "http://www.pygame.org") + (synopsis "Set of Python modules designed for writing games using SDL") + (description + "Pygame is a cross-platform library designed to make it easy to write +multimedia software, such as games, in Python. Pygame requires the Python +language and SDL multimedia library. It can also make use of several other +popular libraries.") + (license (list license:bsd-2 + ;; python numeric license as listed by Debian looks like + ;; an Expat-style license with a warranty disclaimer for + ;; the U.S. government and the University of California. + license:expat + license:lgpl2.0+ + license:lgpl2.1+ + license:gpl3+ + license:psfl + license:public-domain)))) -- 2.9.1