gnu: zabbix-cli: Update to 2.3.0.
* gnu/packages/monitoring.scm (zabbix-cli): Update to 2.3.0. [arguments]: Convert to gexp. Install documentation and run tests. [native-inputs]: Add PYTHON-SPHINX and PYTHON-PYTEST.master
parent
4dbe1c96e4
commit
961c9c07e1
|
@ -61,6 +61,7 @@
|
|||
#:use-module (gnu packages python-web)
|
||||
#:use-module (gnu packages python-xyz)
|
||||
#:use-module (gnu packages rrdtool)
|
||||
#:use-module (gnu packages sphinx)
|
||||
#:use-module (gnu packages time)
|
||||
#:use-module (gnu packages tls)
|
||||
#:use-module (gnu packages web))
|
||||
|
@ -252,7 +253,7 @@ solution (server-side)")))
|
|||
(define-public zabbix-cli
|
||||
(package
|
||||
(name "zabbix-cli")
|
||||
(version "2.2.1")
|
||||
(version "2.3.0")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
|
@ -261,21 +262,38 @@ solution (server-side)")))
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0wzmrn8p09ksqhhgawr179c4az7p2liqr0l4q2dra62bxliawyqz"))))
|
||||
"1p8xkq3mxg476srwrgqax76vjzji0rjx32njmgnpa409vaqrbj5p"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
'(#:phases (modify-phases %standard-phases
|
||||
(add-after 'unpack 'use-absolute-ncurses
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((clear (search-input-file inputs "bin/clear")))
|
||||
(substitute* "bin/zabbix-cli"
|
||||
(("'clear'")
|
||||
(string-append "'" clear "'"))))))
|
||||
(add-after 'unpack 'patch-setup.py
|
||||
(lambda _
|
||||
;; Install data_files to $out/share instead of /usr/share.
|
||||
(substitute* "setup.py"
|
||||
(("/usr/") "")))))))
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'use-absolute-ncurses
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((clear (search-input-file inputs "bin/clear")))
|
||||
(substitute* "bin/zabbix-cli"
|
||||
(("'clear'")
|
||||
(string-append "'" clear "'"))))))
|
||||
(add-after 'unpack 'patch-setup.py
|
||||
(lambda _
|
||||
;; Install data_files to $out/share instead of /usr/share.
|
||||
(substitute* "setup.py"
|
||||
(("/usr/") ""))))
|
||||
(add-after 'build 'build-docs
|
||||
(lambda _
|
||||
(invoke "make" "-C" "docs" "manual")
|
||||
(invoke "make" "-C" "docs" "singlehtml")))
|
||||
(add-after 'install 'install-docs
|
||||
(lambda _
|
||||
(install-file "docs/_build/man/zabbix-cli.1"
|
||||
(string-append #$output "/share/man/man1"))
|
||||
(copy-recursively "docs/_build/singlehtml"
|
||||
(string-append #$output "/share/doc/"
|
||||
#$name "/html"))))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(invoke "pytest" "-vv"))))))
|
||||
(native-inputs
|
||||
(list python-pytest python-sphinx))
|
||||
(inputs
|
||||
(list ncurses python-requests))
|
||||
(home-page "https://github.com/unioslo/zabbix-cli")
|
||||
|
|
Reference in New Issue