mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: gandi.cli: Improve package.
* gnu/packages/networking.scm (gandi.cli): Apply G-expressions. [build-system]: Use pyproject. [arguments]: Remove trailing #t from lambdas. [native-inputs]: Remove python-docutils and python-tox; add python-docutils-0.19, python-setuptools, and python-wheel. Change-Id: I1dc1c0a51d26fa48153c11c1bc656b0b000d37fd
This commit is contained in:
parent
c7dc9a6f41
commit
e8e517e01d
1 changed files with 33 additions and 25 deletions
|
@ -100,6 +100,7 @@
|
||||||
#:use-module (guix build-system perl)
|
#:use-module (guix build-system perl)
|
||||||
#:use-module (guix build-system pyproject)
|
#:use-module (guix build-system pyproject)
|
||||||
#:use-module (guix build-system python)
|
#:use-module (guix build-system python)
|
||||||
|
#:use-module (guix build-system pyproject)
|
||||||
#:use-module (guix build-system qt)
|
#:use-module (guix build-system qt)
|
||||||
#:use-module (guix build-system trivial)
|
#:use-module (guix build-system trivial)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
|
@ -2031,34 +2032,41 @@ round-robin fashion.")
|
||||||
(uri (pypi-uri name version))
|
(uri (pypi-uri name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1h36jahbp7273wn3yd747kbiwjc0bm3sja67bcxdsd54ln0vyndg"))))
|
(base32 "1h36jahbp7273wn3yd747kbiwjc0bm3sja67bcxdsd54ln0vyndg"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
(add-after 'unpack 'embed-store-file-names
|
#~(list "--pyargs" "gandi.cli")
|
||||||
(lambda _
|
#:phases
|
||||||
(substitute* (list "gandi/cli/modules/cert.py"
|
#~(modify-phases %standard-phases
|
||||||
"gandi/cli/tests/commands/test_certificate.py")
|
(add-after 'unpack 'embed-store-file-names
|
||||||
(("openssl") (which "openssl")))
|
(lambda _
|
||||||
#t))
|
(substitute* (list "gandi/cli/modules/cert.py"
|
||||||
(add-after 'install 'install-documentation
|
"gandi/cli/tests/commands/test_certificate.py")
|
||||||
;; The included man page may be outdated but we install it anyway,
|
(("openssl") (which "openssl")))))
|
||||||
;; since it's mentioned in 'gandi --help' and better than nothing.
|
(add-after 'install 'install-documentation
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
;; The included man page may be outdated but we install it anyway,
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
;; since it's mentioned in 'gandi --help' and better than nothing.
|
||||||
(man1 (string-append out "/share/man/man1")))
|
(lambda _
|
||||||
(mkdir-p man1)
|
(let* ((man1 (string-append #$output "/share/man/man1")))
|
||||||
(with-output-to-file (string-append man1 "/gandi.1")
|
(mkdir-p man1)
|
||||||
(lambda _
|
(with-output-to-file (string-append man1 "/gandi.1")
|
||||||
(invoke "rst2man.py" "gandicli.man.rst")))
|
(lambda _
|
||||||
#t))))))
|
(invoke "rst2man.py" "gandicli.man.rst")))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-docutils ; for rst2man.py
|
(list python-docutils-0.19
|
||||||
python-pytest python-pytest-cov python-tox))
|
python-pytest
|
||||||
(propagated-inputs
|
python-pytest-cov
|
||||||
(list openssh)) ; used by gandi/cli/modules/iass.py
|
python-setuptools
|
||||||
|
python-wheel))
|
||||||
(inputs
|
(inputs
|
||||||
(list openssl python-click-7 python-ipy python-pyyaml python-requests))
|
(list openssl
|
||||||
|
python-click-7
|
||||||
|
python-ipy
|
||||||
|
python-pyyaml
|
||||||
|
python-requests))
|
||||||
|
(propagated-inputs
|
||||||
|
(list openssh))
|
||||||
(home-page "https://cli.gandi.net")
|
(home-page "https://cli.gandi.net")
|
||||||
(synopsis "Command-line interface to the Gandi.net Web API")
|
(synopsis "Command-line interface to the Gandi.net Web API")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue