mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-31 16:42:38 -05:00
gnu: Add temper-exporter.
* gnu/packages/monitoring.scm (temper-exporter): New variable.
This commit is contained in:
parent
7c5e5e0e0f
commit
5c7874adb0
1 changed files with 47 additions and 0 deletions
|
@ -508,6 +508,53 @@ (define-public go-github-com-prometheus-node-exporter
|
|||
(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")
|
||||
|
|
Loading…
Reference in a new issue