From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH] gnu: Add graphios. Date: Thu, 30 Jul 2015 17:24:54 -0400 Message-ID: <87h9oljq3d.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKvRk-0000co-QP for guix-devel@gnu.org; Thu, 30 Jul 2015 17:33:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKvJw-00070w-5h for guix-devel@gnu.org; Thu, 30 Jul 2015 17:25:00 -0400 Received: from mail.fsf.org ([208.118.235.13]:38327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKvJv-00070A-On for guix-devel@gnu.org; Thu, 30 Jul 2015 17:24:55 -0400 Received: from [38.88.209.18] (port=40842 helo=izanagi) by mail.fsf.org with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1ZKvJv-0002kS-EG for guix-devel@gnu.org; Thu, 30 Jul 2015 17:24:55 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Here's a little Nagios-related package. Maybe some day we'll actually have Nagios proper. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-graphios.patch >From 49c6fcbf3ccd6c24f4cf4a4ec73e26df3986f01d Mon Sep 17 00:00:00 2001 From: David Thompson 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 --=-=-= Content-Type: text/plain -- David Thompson GPG Key: 0FF1D807 --=-=-=--