summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-27 10:59:31 +0100
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:23:10 +0100
commite7d84d121e5a91c5f96b00e9dd3270595aa94194 (patch)
treeddd2c6b7c57e75aeadeb4fd9f75a4ec7295b93f8 /gnu
parent03fd94c43731e8acf60b28ebf705adeedcc25061 (diff)
gnu: temper-exporter: Switch to pyproject.
* gnu/packages/monitoring.scm (temper-exporter): [arguments]<#:tests?>: Enable them. <#:test-flags>: Ignore failing test. <#:phases>: Refresh them. [native-inputs]: Add python-setuptools. Remove python-pytest-runner. Change-Id: I5880ca3700cf40e876e42b95410d5c76668c5806 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/monitoring.scm37
1 files changed, 17 insertions, 20 deletions
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index c496c8fc0d2..046dd41f5bb 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -760,26 +760,23 @@ written in Go with pluggable metric collectors.")
"0jk3ydi8s14q5kyl9j3gm2zrnwlb1jwjqpg5vqrgkbm9jrldrabc"))))
(build-system pyproject-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
- (list python-prometheus-client python-pyudev))
- (native-inputs
- (list python-setuptools))
+ (list
+ ;; XXX: pretty-printing AssertionError
+ #:test-flags #~(list "-k" "not test_collection")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-setup.py
+ (lambda _
+ (substitute* "setup.py"
+ (("git_ref = .*\n")
+ "git_ref = ''\n"))))
+ (add-after 'install 'install-udev-rules
+ (lambda _
+ (install-file "debian/prometheus-temper-exporter.udev"
+ (string-append #$output
+ "/lib/udev/rules.d")))))))
+ (inputs (list python-prometheus-client python-pyudev))
+ (native-inputs (list python-pytest python-pytest-mock python-setuptools))
(home-page "https://github.com/yrro/temper-exporter")
(synopsis "Prometheus exporter for PCSensor TEMPer sensor devices")
(description