From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 3/5] gnu: Add python-monotonic. Date: Wed, 9 Sep 2015 01:34:22 +0200 Message-ID: <1441755264-6790-3-git-send-email-tipecaml@gmail.com> References: <1441755264-6790-1-git-send-email-tipecaml@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZSPL-0004TS-Fj for guix-devel@gnu.org; Tue, 08 Sep 2015 19:34:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZSPK-0002BU-7z for guix-devel@gnu.org; Tue, 08 Sep 2015 19:34:35 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:35356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZSPK-0002B7-1i for guix-devel@gnu.org; Tue, 08 Sep 2015 19:34:34 -0400 Received: by wicge5 with SMTP id ge5so134692896wic.0 for ; Tue, 08 Sep 2015 16:34:33 -0700 (PDT) In-Reply-To: <1441755264-6790-1-git-send-email-tipecaml@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/python.scm (python-monotonic, python2-monotonic): New variables. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4111596..5f4e9ae 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4826,3 +4826,30 @@ reading and writing MessagePack data.") (define-public python2-iso8601 (package-with-python2 python-iso8601)) + +(define-public python-monotonic + (package + (name "python-monotonic") + (version "0.3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/m/monotonic/monotonic-" + version + ".tar.gz")) + (sha256 + (base32 + "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/atdt/monotonic") + (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3") + (description + "This module provides a monotonic() function which returns the value (in + fractional seconds) of a clock which never goes backwards.") + (license asl2.0))) + +(define-public python2-monotonic + (package-with-python2 python-monotonic)) -- 2.1.4