diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 14:55:45 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 15:04:14 +0000 |
| commit | b7b2b5b6b933fe4ced658d7f2b445c0fd2237b8d (patch) | |
| tree | 88200d2798905454b144d5084ac252273758c3da /gnu | |
| parent | 5e5edd6f740522fccec944e8d4afa76d63f3acff (diff) | |
gnu: python-pyzabbix: Update to 1.3.1.
* gnu/packages/monitoring.scm (python-pyzabbix): Update to 1.3.1.
[build-system]: Switch to pyproject-build-system.
[arguments] <test-flags>: Provide path to tests.
<phases>: Drop all.
[native-inputs]: Add python-setuptools.
Change-Id: If55f0330217fd3416d0a3318eaaa6734b14dafca
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/monitoring.scm | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index e5b31e7c880..7324e1d8538 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm | |||
| @@ -407,30 +407,27 @@ through a text-based interface.") | |||
| 407 | (define-public python-pyzabbix | 407 | (define-public python-pyzabbix |
| 408 | (package | 408 | (package |
| 409 | (name "python-pyzabbix") | 409 | (name "python-pyzabbix") |
| 410 | (version "1.2.1") | 410 | (version "1.3.1") |
| 411 | (home-page "https://github.com/lukecyca/pyzabbix") | ||
| 412 | ;; No tests on PyPI, use the git checkout. | ||
| 413 | (source | 411 | (source |
| 414 | (origin | 412 | (origin |
| 415 | (method git-fetch) | 413 | (method git-fetch) |
| 416 | (uri (git-reference (url home-page) (commit version))) | 414 | (uri (git-reference |
| 415 | (url "https://github.com/lukecyca/pyzabbix") | ||
| 416 | (commit version))) | ||
| 417 | (file-name (git-file-name name version)) | 417 | (file-name (git-file-name name version)) |
| 418 | (sha256 | 418 | (sha256 |
| 419 | (base32 | 419 | (base32 "1dbs3bz1mjlvlg46ikhg5j7agwni61ljlpiziknklv95yp29n86v")))) |
| 420 | "0ad5xac67brmwc3wd0f87pjplly3cqyrz1dp725lzz2hrjgiaqi8")))) | 420 | (build-system pyproject-build-system) |
| 421 | (build-system python-build-system) | ||
| 422 | (arguments | 421 | (arguments |
| 423 | '(#:phases (modify-phases %standard-phases | 422 | (list #:test-flags #~(list "tests"))) |
| 424 | (replace 'check | ||
| 425 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 426 | (if tests? | ||
| 427 | (invoke "pytest" "-vv" "tests") | ||
| 428 | (format #t "test suite not run~%"))))))) | ||
| 429 | (native-inputs | 423 | (native-inputs |
| 430 | ;; For tests. | 424 | (list python-pytest |
| 431 | (list python-requests-mock python-pytest)) | 425 | python-requests-mock |
| 426 | python-setuptools)) | ||
| 432 | (propagated-inputs | 427 | (propagated-inputs |
| 433 | (list python-packaging python-requests)) | 428 | (list python-packaging |
| 429 | python-requests)) | ||
| 430 | (home-page "https://github.com/lukecyca/pyzabbix") | ||
| 434 | (synopsis "Python interface to the Zabbix API") | 431 | (synopsis "Python interface to the Zabbix API") |
| 435 | (description | 432 | (description |
| 436 | "@code{pyzabbix} is a Python module for working with the Zabbix API.") | 433 | "@code{pyzabbix} is a Python module for working with the Zabbix API.") |
