From: Ben Woodcroft <donttrustben@gmail.com>
To: 27961@debbugs.gnu.org
Subject: [bug#27961] [PATCH 2/5] gnu: Add python-pytzdata.
Date: Sat, 5 Aug 2017 12:09:57 +1000 [thread overview]
Message-ID: <20170805021000.18020-2-donttrustben@gmail.com> (raw)
In-Reply-To: <20170805021000.18020-1-donttrustben@gmail.com>
* gnu/packages/time.scm (python-pytzdata): New variable.
---
gnu/packages/time.scm | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index ba54d1d00..e9077cb1d 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -21,7 +22,9 @@
#:use-module (guix licenses)
#: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)
+ #:use-module (gnu packages python))
(define-public time
(package
@@ -55,3 +58,28 @@
program uses. The display output of the program can be customized or saved
to a file.")
(license gpl2+)))
+
+(define-public python-pytzdata
+ (package
+ (name "python-pytzdata")
+ (version "2017.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytzdata" version))
+ (sha256
+ (base32
+ "1c1az8spm2d3km6qhjy69y4dlj71p6984l48mizr83nh4f0ipld4"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-nose" ,python-nose)))
+ (home-page
+ "https://github.com/sdispater/pytzdata")
+ (synopsis "Timezone database for Python")
+ (description
+ "This library provides a timezone database for Python.")
+ (license expat)))
+
+(define-public python2-tzdata
+ (package-with-python2 python-pytzdata))
--
2.13.4
next prev parent reply other threads:[~2017-08-05 2:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-05 2:07 [bug#27961] [PATCH 0/5] Update python-orator, Move to databases.scm Ben Woodcroft
2017-08-05 2:09 ` [bug#27961] [PATCH 1/5] gnu: Add python-backpack Ben Woodcroft
2017-08-05 2:09 ` Ben Woodcroft [this message]
2017-08-16 14:28 ` [bug#27961] [PATCH 2/5] gnu: Add python-pytzdata Ricardo Wurmus
2017-08-05 2:09 ` [bug#27961] [PATCH 3/5] gnu: Add python-pendulum Ben Woodcroft
2017-08-16 14:30 ` Ricardo Wurmus
2017-08-05 2:09 ` [bug#27961] [PATCH 4/5] gnu: python-orator: Update to 0.9.7 Ben Woodcroft
2017-08-16 14:33 ` Ricardo Wurmus
2017-08-05 2:10 ` [bug#27961] [PATCH 5/5] gnu: python-orator: Move to (gnu packages databases) Ben Woodcroft
2017-08-16 14:36 ` Ricardo Wurmus
2017-09-17 1:30 ` bug#27961: " Ben Woodcroft
2017-08-16 14:26 ` [bug#27961] [PATCH 1/5] gnu: Add python-backpack Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170805021000.18020-2-donttrustben@gmail.com \
--to=donttrustben@gmail.com \
--cc=27961@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).