all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add graphios.
@ 2015-07-30 21:24 David Thompson
  2015-07-31  9:06 ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: David Thompson @ 2015-07-30 21:24 UTC (permalink / raw)
  To: guix-devel

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

Here's a little Nagios-related package.  Maybe some day we'll actually
have Nagios proper.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-graphios.patch --]
[-- Type: text/x-patch, Size: 2219 bytes --]

From 49c6fcbf3ccd6c24f4cf4a4ec73e26df3986f01d Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Thu, 30 Jul 2015 15:49:29 -0400
Subject: [PATCH] gnu: Add graphios.

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9d83e9a..5fcc2ae 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4297,3 +4297,43 @@ complexity of Python source code.")
 
 (define-public python2-flake8
   (package-with-python2 python-flake8))
+
+(define-public graphios
+  (package
+   (name "graphios")
+   (version "2.0.3")
+   (source
+    (origin
+      (method url-fetch)
+      (uri (string-append
+            "https://pypi.python.org/packages/source/g/graphios/graphios-"
+            version ".tar.gz"))
+      (sha256
+       (base32
+        "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
+   (build-system python-build-system)
+   (arguments
+    ;; Be warned: Building with Python 3 succeeds, but the build process
+    ;; throws a syntax error that is ignored.
+    `(#:python ,python-2
+      #:phases
+      (modify-phases %standard-phases
+        (add-before 'build 'fix-setup.py
+          (lambda* (#:key outputs #:allow-other-keys)
+            ;; Fix hardcoded, unprefixed file names.
+            (let ((out (assoc-ref outputs "out")))
+              (substitute* '("setup.py")
+                (("/etc") (string-append out "/etc"))
+                (("/usr") out)
+                (("distro_ver = .*") "distro_ver = ''"))
+              #t))))))
+   (inputs
+    `(("python-setuptools" ,python2-setuptools)))
+   (home-page "https://github.com/shawn-sterling/graphios")
+   (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
+   (description
+    "Graphios is a script to emit nagios perfdata to various upstream metrics
+processing and time-series systems.  It's currently compatible with Graphite,
+Statsd, Librato and InfluxDB.  Graphios can emit Nagios metrics to any number
+of supported upstream metrics systems simultaneously.")
+   (license gpl2+)))
-- 
2.4.3


[-- Attachment #3: Type: text/plain, Size: 37 bytes --]


--
David Thompson
GPG Key: 0FF1D807

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

* Re: [PATCH] gnu: Add graphios.
  2015-07-30 21:24 [PATCH] gnu: Add graphios David Thompson
@ 2015-07-31  9:06 ` Ricardo Wurmus
  2015-07-31 12:42   ` Thompson, David
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2015-07-31  9:06 UTC (permalink / raw)
  To: David Thompson; +Cc: guix-devel

> Here's a little Nagios-related package.  Maybe some day we'll actually
> have Nagios proper.

Looks good to me.

I wonder if maybe there’s a better place for this package than
‘python.scm’ (aka ‘the kitchen sink’).  It’s written in Python but it
doesn’t provide any Python module as far as I can tell, so given that it
is related to Nagios maybe it would be better to place it in ‘admin.scm’
or ‘monitoring.scm’.

What do you think?

~~ Ricardo

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

* Re: [PATCH] gnu: Add graphios.
  2015-07-31  9:06 ` Ricardo Wurmus
@ 2015-07-31 12:42   ` Thompson, David
  0 siblings, 0 replies; 3+ messages in thread
From: Thompson, David @ 2015-07-31 12:42 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

On Fri, Jul 31, 2015 at 5:06 AM, Ricardo Wurmus
<ricardo.wurmus@mdc-berlin.de> wrote:
>> Here's a little Nagios-related package.  Maybe some day we'll actually
>> have Nagios proper.
>
> Looks good to me.
>
> I wonder if maybe there’s a better place for this package than
> ‘python.scm’ (aka ‘the kitchen sink’).  It’s written in Python but it
> doesn’t provide any Python module as far as I can tell, so given that it
> is related to Nagios maybe it would be better to place it in ‘admin.scm’
> or ‘monitoring.scm’.
>
> What do you think?

Good idea.  I moved it to admin.scm and pushed.  Thanks!

- Dave

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

end of thread, other threads:[~2015-07-31 12:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-30 21:24 [PATCH] gnu: Add graphios David Thompson
2015-07-31  9:06 ` Ricardo Wurmus
2015-07-31 12:42   ` Thompson, David

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.