aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/python.scm
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2017-01-25 16:00:55 +0300
committerMuriithi Frederick Muriuki2017-01-25 16:00:55 +0300
commit775b9e6bbfa0fab13de92e49a8917d77ef20f15a (patch)
tree6d611625080fa085a54c04a1d1ce6a685a80c8da /gn/packages/python.scm
parent29237acd3c18183c4c3f7b3e286e563c248e4eaf (diff)
downloadguix-bioinformatics-775b9e6bbfa0fab13de92e49a8917d77ef20f15a.tar.gz
python.scm: Add new package python-xenon
Diffstat (limited to 'gn/packages/python.scm')
-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 e629f76..8b73df6 100644
--- a/gn/packages/python.scm
+++ b/gn/packages/python.scm
@@ -568,3 +568,34 @@ numpy package, though some legacy software still uses the older versions.")
* Halstead metrics (all of them)
* the Maintainability Index (a Visual Studio metric)")
(license license:expat)))
+
+(define-public python-xenon
+ (package
+ (name "python-xenon")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/0d/60/649ef1567dac76bf680d5d7498e37d9bf745"
+ "f6a6214da7e5dba530c25481/xenon-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1c03nis488ls50cgcq7ghbj55nxsi6a9683lsvg6z6vaj4smc8g8"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-pyyaml" ,python-pyyaml)
+ ("python-radon" ,python-radon)
+ ("python-requests" ,python-requests)
+ ("python-pyyaml" ,python-pyyaml)))
+ (home-page "https://xenon.readthedocs.org/")
+ (synopsis
+ "Monitor code metrics for Python on your CI server")
+ (description
+ "Xenon is a monitoring tool based on Radon. It monitors code’s complexity. Ideally,
+ Xenon is run every time code is committed. Through command line options, various
+ thresholds can be set for the complexity of code. It will fail (i.e. it will exit with
+ a non-zero exit code) when any of these requirements is not met")
+ (license license:expat)))