From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXO19-0008I7-9t for guix-patches@gnu.org; Tue, 18 Jul 2017 04:38:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXO14-0003wi-Eh for guix-patches@gnu.org; Tue, 18 Jul 2017 04:38:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42640) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXO14-0003we-9T for guix-patches@gnu.org; Tue, 18 Jul 2017 04:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dXO14-0008TX-4g for guix-patches@gnu.org; Tue, 18 Jul 2017 04:38:02 -0400 Subject: [bug#27637] [PATCH 1/5] gnu: Add python-pytz References: In-Reply-To: Resent-Message-ID: From: Muriithi Frederick Muriuki Date: Tue, 18 Jul 2017 11:37:05 +0300 Message-Id: <20170718083709.5062-1-fredmanglis@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27637@debbugs.gnu.org * gnu/packages/package-management.scm (python-pytz, python2-pytz): New * variables. * Add expat license. --- gnu/packages/package-management.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index d2e30781b..e8a401f1c 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -25,7 +25,7 @@ #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (guix build-system python) - #:use-module ((guix licenses) #:select (gpl2+ gpl3+ lgpl2.1+ asl2.0)) + #:use-module ((guix licenses) #:select (gpl2+ gpl3+ lgpl2.1+ asl2.0 expat)) #:use-module (gnu packages) #:use-module (gnu packages guile) #:use-module (gnu packages file) @@ -516,3 +516,28 @@ different. It recursively unpacks archives of many kinds and transforms various binary formats into more human readable forms to compare them. It can compare two tarballs, ISO images, or PDFs just as easily.") (license gpl3+))) + +(define-public python-pytz + (package + (name "python-pytz") + (version "2017.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytz" version ".zip")) + (sha256 + (base32 + "12cmd3j46d2gcw08bspvp6s9icfcvx88zjz52n1bli9dyvl5dh7m")))) + (build-system python-build-system) + (native-inputs + `(("unzip" ,unzip))) + (home-page "http://pythonhosted.org/pytz") + (synopsis "World timezone definitions, modern and historical") + (description "This library brings the Olson tz database into Python. It +allows accurate and cross platform timezone calculations using Python 2.4 or +higher. It also solves the issue of ambiguous times at the end of daylight +saving time. Almost all of the Olson timezones are supported.") + (license expat))) + +(define-public python2-pytz + (package-with-python2 python-pytz)) -- 2.13.2