diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-10 00:36:26 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-30 16:23:52 +0000 |
| commit | 7ed2cfa0b9a0ff66c9d2a00e13ea81fd02ce4a4b (patch) | |
| tree | 868db827f3b0dd57b89aa64fd4bf7553c9bcf495 /gnu/packages | |
| parent | 7fd8b57c20a74d66ba4451790116aa3080038a04 (diff) | |
gnu: python-robotframework-sshlibrary: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-robotframework-sshlibrary):
[build-system]: Switch to pyproject-build-system.
[arguments]: Run guix style -S arguments.
<#:phases>: Improve style of phase 'build-and-install-doc.
[native-inputs]: Add python-setuptools.
[description]: Run guix style.
Change-Id: Ib9e70c340eb24448a8402e1f0ea599c763eed529
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 45894c20441..c9a55da9b78 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -9523,31 +9523,31 @@ trace directly to the terminal to ease debugging.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "1fn72hw7xacjjpl4dd6wynh2x63i9rk8iqhj3v640db21qpcnbkw")) + (base32 "1fn72hw7xacjjpl4dd6wynh2x63i9rk8iqhj3v640db21qpcnbkw")) (patches (search-patches "python-robotframework-sshlibrary-rf5-compat.patch")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'build 'build-and-install-doc - (lambda* (#:key outputs #:allow-other-keys) - (let ((doc (string-append - (assoc-ref outputs "doc") - "/share/doc/robotframework-sshlibrary"))) - (invoke "chmod" "-R" "+w" "docs") - (invoke "invoke" "kw-docs" "project-docs") - (mkdir-p doc) - (for-each delete-file (find-files "docs" "\\.rst")) - (copy-recursively "docs" doc)))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; Some tests require an SSH server; we remove them. - (delete-file "utest/test_client_api.py") - (delete-file "utest/test_scp.py") - (invoke "python" "utest/run.py"))))))) + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'build-and-install-doc + (lambda _ + (let ((doc (string-append #$output:doc + "/share/doc/robotframework-sshlibrary"))) + (invoke "chmod" "-R" "+w" "docs") + (invoke "invoke" "kw-docs" "project-docs") + (mkdir-p doc) + (for-each delete-file + (find-files "docs" "\\.rst")) + (copy-recursively "docs" doc)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Some tests require an SSH server; we remove them. + (delete-file "utest/test_client_api.py") + (delete-file "utest/test_scp.py") + (invoke "python" "utest/run.py"))))))) (propagated-inputs (list python-robotframework python-paramiko python-scp)) (native-inputs @@ -9557,12 +9557,14 @@ trace directly to the terminal to ease debugging.") python-docutils python-invoke python-pygments - python-rellu)) + python-rellu + python-setuptools)) (outputs '("out" "doc")) (home-page "https://github.com/robotframework/SSHLibrary") (synopsis "Robot Framework library for SSH and SFTP") - (description "SSHLibrary is a Robot Framework library providing support -for SSH and SFTP. It has the following main usages: + (description + "SSHLibrary is a Robot Framework library providing support for SSH and +SFTP. It has the following main usages: @itemize @bullet @item Executing commands on the remote machine, either blocking or non-blocking. @item Writing and reading in an interactive shell. |
