unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: 29768@debbugs.gnu.org
Cc: Ricardo Wurmus <rekado@elephly.net>
Subject: [bug#29768] [PATCH 5/5] gnu: Add python2-graphite-web.
Date: Tue, 19 Dec 2017 09:04:33 +0100	[thread overview]
Message-ID: <20171219080433.10392-5-rekado@elephly.net> (raw)
In-Reply-To: <20171219080433.10392-1-rekado@elephly.net>

* gnu/packages/monitoring.scm (python2-graphite-web): New variable.
---
 gnu/packages/monitoring.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 47 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index b74dc18b9..36ef71016 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -26,11 +26,14 @@
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages base)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages django)
   #:use-module (gnu packages gd)
   #:use-module (gnu packages image)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages perl)
-  #:use-module (gnu packages python))
+  #:use-module (gnu packages python)
+  #:use-module (gnu packages python-web)
+  #:use-module (gnu packages time))
 
 (define-public nagios
   (package
@@ -181,3 +184,46 @@ Graphite.  Carbon is responsible for receiving metrics over the network,
 caching them in memory for \"hot queries\" from the Graphite-Web application,
 and persisting them to disk using the Whisper time-series library.")
     (license license:asl2.0)))
+
+(define-public python2-graphite-web
+  (package
+    (name "python2-graphite-web")
+    (version "1.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "graphite-web" version))
+       (sha256
+        (base32
+         "0q8bwlj75jqyzmazfsi5sa26xl58ssa8wdxm2l4j0jqyn8xpfnmc"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:python ,python-2               ; only supports Python 2
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'relax-requirements
+           (lambda _
+             (substitute* "setup.py"
+               (("0.4.3") ,(package-version python2-django-tagging))
+               (("<1.9.99") (string-append "<="
+                             ,(package-version python2-django))))
+             #t))
+         ;; Don't install to /opt
+         (add-after 'unpack 'do-not-install-to-/opt
+           (lambda _ (setenv "GRAPHITE_NO_PREFIX" "1") #t)))))
+    (propagated-inputs
+     `(("python2-cairocffi" ,python2-cairocffi)
+       ("python2-pytz" ,python2-pytz)
+       ("python2-whisper" ,python2-whisper)
+       ("python2-django" ,python2-django)
+       ("python2-django-tagging" ,python2-django-tagging)
+       ("python2-scandir" ,python2-scandir)
+       ("python2-urllib3" ,python2-urllib3)
+       ("python2-pyparsing" ,python2-pyparsing)
+       ("python2-txamqp" ,python2-txamqp)))
+    (home-page "http://graphiteapp.org/")
+    (synopsis "Scalable realtime graphing system")
+    (description "Graphite is a scalable real-time graphing system that does
+two things: store numeric time-series data, and render graphs of this data on
+demand.")
+    (license license:asl2.0)))
-- 
2.15.0

  parent reply	other threads:[~2017-12-19  8:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-18 22:44 [bug#29768] [PATCH 0/5] Graphite Ricardo Wurmus
2017-12-19  8:04 ` [bug#29768] [PATCH 1/5] gnu: Add python-txamqp Ricardo Wurmus
2017-12-19  8:04   ` [bug#29768] [PATCH 2/5] gnu: Add python-django-tagging Ricardo Wurmus
2017-12-19  8:04   ` [bug#29768] [PATCH 3/5] gnu: Add python-whisper Ricardo Wurmus
2017-12-19  8:04   ` [bug#29768] [PATCH 4/5] gnu: Add python2-carbon Ricardo Wurmus
2017-12-19  8:04   ` Ricardo Wurmus [this message]
2018-01-21 18:39     ` bug#29768: [PATCH 5/5] gnu: Add python2-graphite-web Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171219080433.10392-5-rekado@elephly.net \
    --to=rekado@elephly.net \
    --cc=29768@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).