From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddoZS-0005hf-S0 for guix-patches@gnu.org; Fri, 04 Aug 2017 22:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddoZP-0005at-L0 for guix-patches@gnu.org; Fri, 04 Aug 2017 22:12:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddoZP-0005al-Hg for guix-patches@gnu.org; Fri, 04 Aug 2017 22:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ddoZP-00020h-C0 for guix-patches@gnu.org; Fri, 04 Aug 2017 22:12:03 -0400 Subject: [bug#27961] [PATCH 3/5] gnu: Add python-pendulum. Resent-Message-ID: From: Ben Woodcroft Date: Sat, 5 Aug 2017 12:09:58 +1000 Message-Id: <20170805021000.18020-3-donttrustben@gmail.com> In-Reply-To: <20170805021000.18020-1-donttrustben@gmail.com> References: <20170805021000.18020-1-donttrustben@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: 27961@debbugs.gnu.org * 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