diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-27 10:59:31 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:23:10 +0100 |
| commit | e7d84d121e5a91c5f96b00e9dd3270595aa94194 (patch) | |
| tree | ddd2c6b7c57e75aeadeb4fd9f75a4ec7295b93f8 /gnu/packages/monitoring.scm | |
| parent | 03fd94c43731e8acf60b28ebf705adeedcc25061 (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/packages/monitoring.scm')
| -rw-r--r-- | gnu/packages/monitoring.scm | 37 |
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.") | |||
| 760 | "0jk3ydi8s14q5kyl9j3gm2zrnwlb1jwjqpg5vqrgkbm9jrldrabc")))) | 760 | "0jk3ydi8s14q5kyl9j3gm2zrnwlb1jwjqpg5vqrgkbm9jrldrabc")))) |
| 761 | (build-system pyproject-build-system) | 761 | (build-system pyproject-build-system) |
| 762 | (arguments | 762 | (arguments |
| 763 | '(#:tests? #f ; One test failure: | 763 | (list |
| 764 | ; test/test_exporter.py:33: | 764 | ;; XXX: pretty-printing AssertionError |
| 765 | ; AssertionError | 765 | #:test-flags #~(list "-k" "not test_collection") |
| 766 | #:phases | 766 | #:phases |
| 767 | (modify-phases %standard-phases | 767 | #~(modify-phases %standard-phases |
| 768 | (add-after 'unpack 'patch-setup.py | 768 | (add-after 'unpack 'patch-setup.py |
| 769 | (lambda _ | 769 | (lambda _ |
| 770 | (substitute* "setup.py" | 770 | (substitute* "setup.py" |
| 771 | (("git_ref = .*\n") "git_ref = ''\n")) | 771 | (("git_ref = .*\n") |
| 772 | #t)) | 772 | "git_ref = ''\n")))) |
| 773 | (add-after 'install 'install-udev-rules | 773 | (add-after 'install 'install-udev-rules |
| 774 | (lambda* (#:key outputs #:allow-other-keys) | 774 | (lambda _ |
| 775 | (install-file "debian/prometheus-temper-exporter.udev" | 775 | (install-file "debian/prometheus-temper-exporter.udev" |
| 776 | (string-append (assoc-ref outputs "out") | 776 | (string-append #$output |
| 777 | "/lib/udev/rules.d")) | 777 | "/lib/udev/rules.d"))))))) |
| 778 | #t))))) | 778 | (inputs (list python-prometheus-client python-pyudev)) |
| 779 | (inputs | 779 | (native-inputs (list python-pytest python-pytest-mock python-setuptools)) |
| 780 | (list python-prometheus-client python-pyudev)) | ||
| 781 | (native-inputs | ||
| 782 | (list python-setuptools)) | ||
| 783 | (home-page "https://github.com/yrro/temper-exporter") | 780 | (home-page "https://github.com/yrro/temper-exporter") |
| 784 | (synopsis "Prometheus exporter for PCSensor TEMPer sensor devices") | 781 | (synopsis "Prometheus exporter for PCSensor TEMPer sensor devices") |
| 785 | (description | 782 | (description |
