all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#46490] [PATCH] gnu: Add temper-exporter.
@ 2021-02-13 15:26 Christopher Baines
  2021-02-22 10:11 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2021-02-13 15:26 UTC (permalink / raw)
  To: 46490

* gnu/packages/monitoring.scm (temper-exporter): New variable.
---
 gnu/packages/monitoring.scm | 47 +++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 75a422921c..81e3d9c156 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -508,6 +508,53 @@ written in Go with pluggable metric collectors.")
     (home-page "https://github.com/prometheus/node_exporter")
     (license license:asl2.0)))
 
+(define-public temper-exporter
+  (let ((commit "a87bbab19c05609d62d9e4c7941178700c1ef84d")
+        (revision "0"))
+    (package
+      (name "temper-exporter")
+      (version (git-version "0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/yrro/temper-exporter")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0jk3ydi8s14q5kyl9j3gm2zrnwlb1jwjqpg5vqrgkbm9jrldrabc"))))
+      (build-system python-build-system)
+      (arguments
+       '(#:tests? #f                    ; One test failure:
+                                        ; test/test_exporter.py:33:
+                                        ; AssertionError
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'patch-setup.py
+             (lambda _
+               (substitute* "setup.py"
+                 (("git_ref = .*\n") "git_ref = ''\n"))
+               #t))
+           (add-after 'install 'install-udev-rules
+             (lambda* (#:key outputs #:allow-other-keys)
+               (install-file "debian/prometheus-temper-exporter.udev"
+                             (string-append (assoc-ref outputs "out")
+                                            "/lib/udev/rules.d"))
+               #t)))))
+      (inputs
+       `(("python-prometheus-client" ,python-prometheus-client)
+         ("python-pyudev" ,python-pyudev)))
+      (native-inputs
+       `(("python-pytest" ,python-pytest)
+         ("python-pytest-mock" ,python-pytest-mock)
+         ("python-pytest-runner" ,python-pytest-runner)))
+      (home-page "https://github.com/yrro/temper-exporter")
+      (synopsis "Prometheus exporter for PCSensor TEMPer sensor devices")
+      (description
+       "This package contains a Prometheus exporter for the TEMPer sensor
+devices.")
+      (license license:expat))))
+
 (define-public fswatch
   (package
     (name "fswatch")
-- 
2.30.0





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

* [bug#46490] [PATCH] gnu: Add temper-exporter.
  2021-02-13 15:26 [bug#46490] [PATCH] gnu: Add temper-exporter Christopher Baines
@ 2021-02-22 10:11 ` Ludovic Courtès
  2021-02-22 22:22   ` bug#46490: " Christopher Baines
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2021-02-22 10:11 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 46490

Christopher Baines <mail@cbaines.net> skribis:

> * gnu/packages/monitoring.scm (temper-exporter): New variable.

LGTM!

Ludo'.




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

* bug#46490: [PATCH] gnu: Add temper-exporter.
  2021-02-22 10:11 ` Ludovic Courtès
@ 2021-02-22 22:22   ` Christopher Baines
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2021-02-22 22:22 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 46490-done

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


Ludovic Courtès <ludo@gnu.org> writes:

> Christopher Baines <mail@cbaines.net> skribis:
>
>> * gnu/packages/monitoring.scm (temper-exporter): New variable.
>
> LGTM!

Thanks for taking a look, pushed as
5c7874adb00c834e55e58a9b964ebc5fd1bb872c.

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

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

end of thread, other threads:[~2021-02-22 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-13 15:26 [bug#46490] [PATCH] gnu: Add temper-exporter Christopher Baines
2021-02-22 10:11 ` Ludovic Courtès
2021-02-22 22:22   ` bug#46490: " Christopher Baines

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.