From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muriithi Frederick Muriuki Subject: [PATCH 2/5] gnu: Add python-radon Date: Sun, 26 Mar 2017 12:56:31 +0300 Message-ID: <20170326095634.4644-2-fredmanglis@gmail.com> References: <20170326095634.4644-1-fredmanglis@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cs4tw-0006vD-KA for guix-devel@gnu.org; Sun, 26 Mar 2017 05:55:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cs4tv-0002WE-D1 for guix-devel@gnu.org; Sun, 26 Mar 2017 05:55:56 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:34357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cs4tv-0002UP-0w for guix-devel@gnu.org; Sun, 26 Mar 2017 05:55:55 -0400 Received: by mail-wr0-x244.google.com with SMTP id w43so1429627wrb.1 for ; Sun, 26 Mar 2017 02:55:54 -0700 (PDT) In-Reply-To: <20170326095634.4644-1-fredmanglis@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 Cc: pjotr2017@thebird.nl * gnu/packages/python.scm (python-radon): New variable. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index df2928d..d94464c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13995,3 +13995,36 @@ recognize TestCases.") (sha256 (base32 "0hh4irxpga058q496lcilbqfxwiyxxig1bal633s9bk1plfdy7g5")))))) + +(define-public python-radon + (package + (name "python-radon") + (version "1.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "radon" version)) + (sha256 + (base32 + "1h6jv36am0i827182a04ki6291lyx4kp957xfr5njgprj4nd0qsl")))) + (build-system python-build-system) + (propagated-inputs + `(("python-colorama" ,python-colorama) + ("python-flake8-polyfill" + ,python-flake8-polyfill) + ("python-mando" ,python-mando-0.3.1))) + (native-inputs + `(("python-flake8" ,python-flake8) + ("python-tox" ,python-tox) + ("python-pytest" ,python-pytest))) + (home-page "https://radon.readthedocs.org/") + (synopsis "Code Metrics in Python") + (description "Radon is a Python tool which computes various code metrics. Supported + metrics are: +@itemize @bullet +@item raw metrics: SLOC, comment lines, blank lines, &c. +@item Cyclomatic Complexity (i.e. McCabe’s Complexity) +@item Halstead metrics (all of them) +@item the Maintainability Index (a Visual Studio metric) +@end itemize") + (license license:expat))) -- 2.10.2