From: Ben Woodcroft <donttrustben@gmail.com>
To: 27961@debbugs.gnu.org
Subject: [bug#27961] [PATCH 3/5] gnu: Add python-pendulum.
Date: Sat, 5 Aug 2017 12:09:58 +1000 [thread overview]
Message-ID: <20170805021000.18020-3-donttrustben@gmail.com> (raw)
In-Reply-To: <20170805021000.18020-1-donttrustben@gmail.com>
* gnu/packages/time.scm (python-pendulum): New variable.
---
gnu/packages/time.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index e9077cb1d..88617b8d7 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -83,3 +83,33 @@ to a file.")
(define-public python2-tzdata
(package-with-python2 python-pytzdata))
+
+(define-public python-pendulum
+ (package
+ (name "python-pendulum")
+ (version "1.2.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pendulum" version))
+ (sha256
+ (base32
+ "1fj36yxi2f4lzchzd8ny1qjl67dbypnk0gn8qwad2w78579m8m8z"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-nose" ,python-nose)))
+ (propagated-inputs
+ `(("python-dateutil" ,python-dateutil)
+ ("python-pytzdata" ,python-pytzdata)
+ ("python-tzlocal" ,python-tzlocal)))
+ (home-page "https://github.com/sdispater/pendulum")
+ (synopsis "Alternate API for Python datetimes")
+ (description "Pendulum is a drop-in replacement for the standard
+@{datetime} class, providing an alternative API. As it inherits from the
+standard @code{datetime}so you can replace all your @code{datetime} instances
+by Pendulum instances in you code")
+ (license expat)))
+
+(define-public python2-pendulum
+ (package-with-python2 python-pendulum))
--
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 ` [bug#27961] [PATCH 2/5] gnu: Add python-pytzdata Ben Woodcroft
2017-08-16 14:28 ` Ricardo Wurmus
2017-08-05 2:09 ` Ben Woodcroft [this message]
2017-08-16 14:30 ` [bug#27961] [PATCH 3/5] gnu: Add python-pendulum 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-3-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).