From 7ed2cfa0b9a0ff66c9d2a00e13ea81fd02ce4a4b Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 10 Oct 2025 00:36:26 +0200 Subject: [PATCH] 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 --- gnu/packages/python-xyz.scm | 52 +++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 45894c204415a627ffdfb197cc5361978da42bb4..c9a55da9b780ecce7864d148619ebffc5f99788a 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.