aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2017-01-25 15:59:45 +0300
committerMuriithi Frederick Muriuki2017-01-25 15:59:45 +0300
commit29237acd3c18183c4c3f7b3e286e563c248e4eaf (patch)
tree64e0cc7b528e06a78a9b9b4eab4a5c8b86c3928d /gn
parent30903c2a94a356f3cc14628489194f2185e9888f (diff)
downloadguix-bioinformatics-29237acd3c18183c4c3f7b3e286e563c248e4eaf.tar.gz
python.scm: Add new package python-radon
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/python.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gn/packages/python.scm b/gn/packages/python.scm
index edfdd0c..e629f76 100644
--- a/gn/packages/python.scm
+++ b/gn/packages/python.scm
@@ -537,3 +537,34 @@ numpy package, though some legacy software still uses the older versions.")
"This package that provides some compatibility helpers for Flake8 plugins that
intend to support Flake8 2.x and 3.x simultaneously")
(license license:expat)))
+
+(define-public python-radon
+ (package
+ (name "python-radon")
+ (version "1.4.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/91/48/5853fa60811d6cec1043bd60b057aafc2270"
+ "6e19ab90b33d8df8155e6b8d/radon-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "15xyzavfj1zwb5rn07fs2wfi6ccys9b5q0s8hmnpqz712mifl92g"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-colorama" ,python-colorama)
+ ("python-flake8-polyfill"
+ ,python-flake8-polyfill)
+ ("python-mando" ,python-mando)))
+ (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:
+ * raw metrics: SLOC, comment lines, blank lines, &c.
+ * Cyclomatic Complexity (i.e. McCabe’s Complexity)
+ * Halstead metrics (all of them)
+ * the Maintainability Index (a Visual Studio metric)")
+ (license license:expat)))