diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2017-12-18 19:29:13 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-01-21 19:38:51 +0100 |
commit | a15181bbdb3428362695bc8f80f256d006b357f0 (patch) | |
tree | e42204d9e607f1ec93ff0be6dae5950e7830e97b /gnu/packages/monitoring.scm | |
parent | 4d92c2106462bb1a77d6e0986eba19d90853b583 (diff) | |
download | guix-a15181bbdb3428362695bc8f80f256d006b357f0.tar guix-a15181bbdb3428362695bc8f80f256d006b357f0.tar.gz |
gnu: Add python2-carbon.
* gnu/packages/monitoring.scm (python2-carbon): New variable.
Diffstat (limited to 'gnu/packages/monitoring.scm')
-rw-r--r-- | gnu/packages/monitoring.scm | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index f7b14e4165..1a5cc0414c 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -31,7 +31,8 @@ #:use-module (gnu packages gd) #:use-module (gnu packages image) #:use-module (gnu packages mail) - #:use-module (gnu packages perl)) + #:use-module (gnu packages perl) + #:use-module (gnu packages python)) (define-public nagios (package @@ -183,3 +184,34 @@ historical data.") (define-public python2-whisper (package-with-python2 python-whisper)) + +(define-public python2-carbon + (package + (name "python2-carbon") + (version "1.0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "carbon" version)) + (sha256 + (base32 + "142smpmgbnjinvfb6s4ijazish4vfgzyd8zcmdkh55y051fkixkn")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2 ; only supports Python 2 + #:phases + (modify-phases %standard-phases + ;; Don't install to /opt + (add-after 'unpack 'do-not-install-to-/opt + (lambda _ (setenv "GRAPHITE_NO_PREFIX" "1") #t))))) + (propagated-inputs + `(("python2-whisper" ,python2-whisper) + ("python2-configparser" ,python2-configparser) + ("python2-txamqp" ,python2-txamqp))) + (home-page "http://graphiteapp.org/") + (synopsis "Backend data caching and persistence daemon for Graphite") + (description "Carbon is a backend data caching and persistence daemon for +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))) |