From 0081505cb53811073d175b0f012cb6e6932d7913 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Thu, 25 May 2017 11:25:34 +0300 Subject: [PATCH] gnu: Add python-radon * gnu/packages/python.scm (python-radon, python2-radon): New variables. --- gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index dc1efd62a..07f10c13c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14622,3 +14622,40 @@ substitute for redis.") (define-public python2-fakeredis (package-with-python2 python-fakeredis)) + +(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) + ("python-paramunittest" ,python-paramunittest))) + (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: address@hidden @bullet address@hidden raw metrics: SLOC, comment lines, blank lines, &c. address@hidden Cyclomatic Complexity (i.e. McCabe’s Complexity) address@hidden Halstead metrics (all of them) address@hidden the Maintainability Index (a Visual Studio metric) address@hidden itemize") + (license license:expat))) + +(define-public python2-radon + (package-with-python2 python-radon)) -- 2.13.0