From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 06/11] gnu: Add python-nose-timer. Date: Mon, 11 Sep 2017 20:22:37 +0200 Message-ID: <20170911182242.7422-7-tipecaml@gmail.com> References: <20170911182242.7422-1-tipecaml@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drTMO-0007W9-AV for guix-devel@gnu.org; Mon, 11 Sep 2017 14:23:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drTMM-0003cR-1r for guix-devel@gnu.org; Mon, 11 Sep 2017 14:23:04 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:35195) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drTML-0003bh-Rp for guix-devel@gnu.org; Mon, 11 Sep 2017 14:23:01 -0400 Received: by mail-wr0-x22c.google.com with SMTP id m18so16326587wrm.2 for ; Mon, 11 Sep 2017 11:23:01 -0700 (PDT) In-Reply-To: <20170911182242.7422-1-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" To: guix-devel@gnu.org * gnu/packages/python.scm (python-nose-time, python2-nose-timer): New variables. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0487ae32b..e0b577afe 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -16304,3 +16304,31 @@ ignoring formatting changes.") (define-public python2-pydiff (package-with-python2 python-pydiff)) + +(define-public python-nose-timer + (package + (name "python-nose-timer") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "nose-timer" version)) + (patches + (search-patches + ;; This patch will not be needed in the next version. + ;; It is taken from the master branch. + "python-nose-timer-drop-ordereddict.patch")) + (sha256 + (base32 + "1s32ymsnby8lz2qk55ifj9zi50dqcg6swnj5cz2rmwxg2jsslsxp")))) + (build-system python-build-system) + (propagated-inputs + `(("python-nose" ,python-nose) + ("python-termcolor" ,python-termcolor))) + (home-page "https://github.com/mahmoudimus/nose-timer") + (synopsis "Timer plugin for nosetests") + (description "Shows how much time was needed to run individual tests.") + (license license:expat))) + +(define-public python2-nose-timer + (package-with-python2 python-nose-timer)) -- 2.14.1