unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#27423] gnu: Add python2-xenon
@ 2017-06-18 18:50 Frederick Muriithi
  2017-06-18 18:53 ` [bug#27423] [PATCH] " Muriithi Frederick Muriuki
  2017-06-24  3:56 ` [bug#27423] [PATCH] gnu: Add python-xenon Muriithi Frederick Muriuki
  0 siblings, 2 replies; 5+ messages in thread
From: Frederick Muriithi @ 2017-06-18 18:50 UTC (permalink / raw)
  To: 27423

python2-xenon is a dependency of conda. I'm working on getting conda on guix.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#27423] [PATCH] gnu: Add python2-xenon
  2017-06-18 18:50 [bug#27423] gnu: Add python2-xenon Frederick Muriithi
@ 2017-06-18 18:53 ` Muriithi Frederick Muriuki
  2017-06-20 20:19   ` Marius Bakke
  2017-06-24  3:56 ` [bug#27423] [PATCH] gnu: Add python-xenon Muriithi Frederick Muriuki
  1 sibling, 1 reply; 5+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-06-18 18:53 UTC (permalink / raw)
  To: 27423

* gnu/packages/python.scm (python2-xenon): New variable.
---
 gnu/packages/python.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c07bbae3e..e84b71701 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15406,3 +15406,44 @@ window memory map manager.")
 
 (define-public python2-smmap2
   (package-with-python2 python-smmap2))
+
+(define-public python2-xenon
+  (package
+    (name "python2-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" ,python2-pyyaml)
+       ("python-radon" ,python2-radon)
+       ("python-requests" ,python2-requests)
+       ("python-flake8" ,python2-flake8)
+       ("python2-httpretty" ,python2-httpretty)
+       ("python-tox" ,python2-tox)))
+    (arguments
+     `(#:python ,python-2
+       #: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") ""))
+             #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 requirements is not met.")
+    (license license:expat)))
-- 
2.13.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#27423] [PATCH] gnu: Add python2-xenon
  2017-06-18 18:53 ` [bug#27423] [PATCH] " Muriithi Frederick Muriuki
@ 2017-06-20 20:19   ` Marius Bakke
  0 siblings, 0 replies; 5+ messages in thread
From: Marius Bakke @ 2017-06-20 20:19 UTC (permalink / raw)
  To: Muriithi Frederick Muriuki, 27423

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

Muriithi Frederick Muriuki <fredmanglis@gmail.com> writes:

> * gnu/packages/python.scm (python2-xenon): New variable.

According to the README.rst, this package also supports python3. Could
you add the python3 variant as well and make the python2 package inherit
from it? Please also keep line lengths below 80 characters. TIA!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#27423] [PATCH] gnu: Add python-xenon
  2017-06-18 18:50 [bug#27423] gnu: Add python2-xenon Frederick Muriithi
  2017-06-18 18:53 ` [bug#27423] [PATCH] " Muriithi Frederick Muriuki
@ 2017-06-24  3:56 ` Muriithi Frederick Muriuki
  2017-09-01 22:46   ` bug#27423: " Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-06-24  3:56 UTC (permalink / raw)
  To: 27423

* 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 6150a8798..63d05e9e2 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15500,3 +15500,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
+requirements is not met.")
+    (license license:expat)))
+
+(define-public python2-xenon
+  (package-with-python2 python-xenon))
-- 
2.13.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#27423: [PATCH] gnu: Add python-xenon
  2017-06-24  3:56 ` [bug#27423] [PATCH] gnu: Add python-xenon Muriithi Frederick Muriuki
@ 2017-09-01 22:46   ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2017-09-01 22:46 UTC (permalink / raw)
  To: Muriithi Frederick Muriuki; +Cc: 27423-done

Hi Frederick,

Muriithi Frederick Muriuki <fredmanglis@gmail.com> skribis:

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

Finally committed, apologies for the delay!

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-01 22:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-18 18:50 [bug#27423] gnu: Add python2-xenon Frederick Muriithi
2017-06-18 18:53 ` [bug#27423] [PATCH] " Muriithi Frederick Muriuki
2017-06-20 20:19   ` Marius Bakke
2017-06-24  3:56 ` [bug#27423] [PATCH] gnu: Add python-xenon Muriithi Frederick Muriuki
2017-09-01 22:46   ` bug#27423: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).