emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#27548: closed ([PATCH] gnu: Add python-xenon)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#27548: closed ([PATCH] gnu: Add python-xenon)
Date: Mon, 16 Oct 2017 13:25:01 +0000

Your message dated Mon, 16 Oct 2017 15:24:06 +0200
with message-id <address@hidden>
and subject line Re: [bug#27548] [PATCH] gnu: Add python-xenon
has caused the debbugs.gnu.org bug report #27548,
regarding [PATCH] gnu: Add python-xenon
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
27548: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27548
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-xenon Date: Sat, 1 Jul 2017 17:44:20 +0300
* gnu/packages/python.scm (python-xenon, python2-xenon) New variables.
---
 gnu/packages/python.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 6e1e289e9..1167b0933 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15512,3 +15512,49 @@ pure Python module.")
 
 (define-public python2-rencode
   (package-with-python2 python-rencode))
+
+(define-public python-xenon
+  (package
+    (name "python-xenon")
+    (version "0.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "xenon" version))
+       (sha256
+        (base32
+         "14kby2y48vp3sgwxqlm5d5789yibqwb1qli5fwcmdqg3iayrbklc"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pyyaml" ,python-pyyaml)
+       ("python-radon" ,python-radon)
+       ("python-requests" ,python-requests)
+      ("python-flake8" ,python-flake8)
+       ("python-tox" ,python-tox)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'patch-test-requirements
+          (lambda* (#:key inputs #:allow-other-keys)
+             ;; Update requirements from dependecy==version
+             ;; to dependency>=version
+             (substitute* "requirements.txt"
+               (("==") ">=")
+               ((",<1.5.0") ""))
+            ;; Remove httpretty dependency for tests
+             (substitute* "setup.py"
+               (("httpretty") ""))
+             #t)))))
+    (home-page "https://xenon.readthedocs.org/";)
+    (synopsis
+     "Monitor code metrics for Python on your CI server")
+   (description
+     "@code{Xenon} is a monitoring tool based on Radon.  It monitors code’s
+complexity.  Ideally, @code{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
+equirements is not met.")
+    (license license:expat)))
+
+(define-public python2-xenon
+  (package-with-python2 python-xenon))
-- 
2.13.2




--- End Message ---
--- Begin Message --- Subject: Re: [bug#27548] [PATCH] gnu: Add python-xenon Date: Mon, 16 Oct 2017 15:24:06 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
Muriithi Frederick Muriuki <address@hidden> skribis:

> * gnu/packages/python.scm (python-xenon, python2-xenon) New variables.

This was pushed as 2038a48f4d a while back.

Thanks again,
Ludo'.


--- End Message ---

reply via email to

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