From acc26ff148f0b70cafbcfa281e3bf18bde4e297f Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Thu, 23 May 2013 03:49:02 +0200 Subject: [PATCH] gnu: Add pytz. * gnu/packages/python.scm (pytz): New package. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 800b08c373..eb3315cba7 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -18,7 +18,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages python) - #:use-module ((guix licenses) #:select (psfl)) + #:use-module ((guix licenses) #:select (psfl x11)) #:use-module (gnu packages) #:use-module (gnu packages compression) #:use-module (gnu packages gdbm) @@ -27,7 +27,8 @@ (define-module (gnu packages python) #:use-module (gnu packages patchelf) #:use-module (guix packages) #:use-module (guix download) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix build-system python)) (define-public python (package @@ -106,3 +107,23 @@ (define-public python packages; exception-based error handling; and very high level dynamic data types.") (license psfl))) + +(define-public pytz + (package + (name "pytz") + (version "2013b") + (source + (origin + (method url-fetch) + (uri (string-append "https://launchpad.net/pytz/main/" version + "/+download/pytz-" version ".tar.bz2")) + (sha256 + (base32 + "19giwgfcrg0nr1gdv49qnmf2jb2ilkcfc7qyqvfpz4dp0p64ksv5")))) + (build-system python-build-system) + (home-page "https://launchpad.net/pytz") + (synopsis "The Python timezone library.") + (description + "This library allows accurate and cross platform timezone calculations +using Python 2.4 or higher and provides access to the Olson timezone database.") + (license x11)))