From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: Add python-pprofile. Date: Mon, 6 Feb 2017 10:05:51 +0100 Message-ID: <20170206090551.14819-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cafFM-0003Xl-KZ for guix-devel@gnu.org; Mon, 06 Feb 2017 04:06:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cafFJ-0000W8-Da for guix-devel@gnu.org; Mon, 06 Feb 2017 04:06:04 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:44631) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cafFJ-0000VM-6q for guix-devel@gnu.org; Mon, 06 Feb 2017 04:06:01 -0500 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-pprofile, python2-pprofile): New variables. --- gnu/packages/python.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d53eea189..be9ba856f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12536,3 +12536,26 @@ console.") This implementation is slow (hence the project name) but still useful when faster ones are not available.") (license license:asl2.0))) + +(define-public python-pprofile + (package + (name "python-pprofile") + (version "1.10.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pprofile" version)) + (sha256 + (base32 + "18dqwnqir0q96q5njf2n5ikk3zbyphsnxnvqxg26p7bnc5bqvpk5")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; None exist. + (home-page "http://github.com/vpelletier/pprofile") + (synopsis "Statistical pure-Python profiler") + (description "@code{python-pprofile} provides a line-granularity profiler +that is thread-aware, deterministic and does statistics, for Python.") + (license license:gpl2+))) + +(define-public python2-pprofile + (package-with-python2 python-pprofile))