From patchwork Wed May 29 00:36:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hamzeh Nasajpour X-Patchwork-Id: 14130 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8694C17052; Wed, 29 May 2019 01:39:01 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 21F6817050 for ; Wed, 29 May 2019 01:39:01 +0100 (BST) Received: from localhost ([127.0.0.1]:44818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVmcO-0001d2-OT for patchwork@mira.cbaines.net; Tue, 28 May 2019 20:39:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVmaY-0000O9-0b for guix-patches@gnu.org; Tue, 28 May 2019 20:37:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVmaW-0001vO-47 for guix-patches@gnu.org; Tue, 28 May 2019 20:37:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44221) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVmaV-0001vD-UX for guix-patches@gnu.org; Tue, 28 May 2019 20:37:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVmaV-0006An-RH for guix-patches@gnu.org; Tue, 28 May 2019 20:37:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35977] [PATCH 45/47] gnu: Add python-strict-rfc3339. Resent-From: "h.nasajpour" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 May 2019 00:37:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35977 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35977@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155909019323648 (code B ref -1); Wed, 29 May 2019 00:37:03 +0000 Received: (at submit) by debbugs.gnu.org; 29 May 2019 00:36:33 +0000 Received: from localhost ([127.0.0.1]:57758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVma0-00069M-UG for submit@debbugs.gnu.org; Tue, 28 May 2019 20:36:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVmZy-000698-L7 for submit@debbugs.gnu.org; Tue, 28 May 2019 20:36:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:54636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVmZt-0001X9-HB for submit@debbugs.gnu.org; Tue, 28 May 2019 20:36:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVmZs-0008Qg-FG for guix-patches@gnu.org; Tue, 28 May 2019 20:36:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVmZr-0001Vu-I1 for guix-patches@gnu.org; Tue, 28 May 2019 20:36:24 -0400 Received: from 37.59.236.227.rdns.hasaserver.com ([37.59.236.227]:55897 helo=hamzeh-VirtualBox.Home) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVmZr-0001VP-0f for guix-patches@gnu.org; Tue, 28 May 2019 20:36:23 -0400 Received: by hamzeh-VirtualBox.Home (Postfix, from userid 0) id 9299F1A154B; Wed, 29 May 2019 05:06:22 +0430 (+0430) From: "h.nasajpour" Date: Wed, 29 May 2019 05:06:21 +0430 Message-Id: <20190529003621.3314-1-h.nasajpour@pantherx.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "h.nasajpour" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/time.scm (python-strict-rfc3339): New variable --- gnu/packages/time.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index 1363843b31..9e23ffae14 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -440,3 +440,21 @@ datetime type.") modifies the @code{time}, @code{gettimeofday} and @code{clock_gettime} system calls.") (license gpl2))) + +(define-public python-strict-rfc3339 + (package + (name "python-strict-rfc3339") + (version "0.7") + (source (origin + (method url-fetch) + (uri (pypi-uri "strict-rfc3339" version)) + (sha256 (base32 "0xqjbsn0g1h88rayh5yrpdagq60zfwrfs3yvk6rmgby3vyz1gbaw")))) + (build-system python-build-system) + (arguments + `( + #:tests? #f + )) + (home-page "https://github.com/danielrichman/strict-rfc3339") + (synopsis "Strict, simple, lightweight RFC3339 functions.") + (description "Convert unix timestamps to and from RFC3339.") + (license license:gpl3+)))