guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 20/20] gnu: Add python-xenon


From: Muriithi Frederick Muriuki
Subject: [PATCH 20/20] gnu: Add python-xenon
Date: Fri, 14 Apr 2017 13:13:20 +0300

* gnu/packages/python.scm (python-xenon): 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 fe911de..a0dc4fb 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14463,3 +14463,36 @@ This is also for repeatable fuzzy data in tests - 
factory boy uses faker for lot
 
 (define-public python2-requests-2.10.0
   (package-with-python2 python-requests-2.10.0))
+
+(define-public python-xenon
+  (package
+    (name "python-xenon")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "xenon" version))
+       (sha256
+        (base32
+         "1c03nis488ls50cgcq7ghbj55nxsi6a9683lsvg6z6vaj4smc8g8"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pyyaml" ,python-pyyaml-3.11)
+       ("python-radon" ,python-radon)
+       ("python-requests" ,python-requests-2.10.0)
+       ("python-pyyaml" ,python-pyyaml)
+       ("python-httpretty" ,python-httpretty)
+       ("python-flake8" ,python-flake8)
+       ("python-tox" ,python-tox)))
+    (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)))
+
+(define-public python2-xenon
+  (package-with-python2 python-xenon))
-- 
2.10.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]