diff options
author | Marius Bakke <marius@gnu.org> | 2022-01-11 00:49:24 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-01-11 18:36:39 +0100 |
commit | bc5b1dce07c959f7a16ef56c456c2853a7dc6360 (patch) | |
tree | 1aad1a3f9a8588b627007c2365ee442ba9d4e5b4 /gnu | |
parent | 11323c2d5447e41ea8c074a84b23c72dcb4557ba (diff) | |
download | guix-bc5b1dce07c959f7a16ef56c456c2853a7dc6360.tar guix-bc5b1dce07c959f7a16ef56c456c2853a7dc6360.tar.gz |
gnu: python-apache-libcloud: Fix bytecode compilation.
* gnu/packages/python-xyz.scm (python-apache-libcloud)[arguments]: Fix
indentation of test code. While here, remove input label usage and trailing
#t's.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-xyz.scm | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 402b275ec8..346240504b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -19616,26 +19616,24 @@ multitouch applications.") "1b28j265kvibgxrgxx0gwfm6cmv252c8ph1j2vb0cpms8ph5if5v")))) (build-system python-build-system) (arguments - `(#:phases + '(#:phases (modify-phases %standard-phases (add-after 'unpack 'patch-ssh (lambda* (#:key inputs #:allow-other-keys) (substitute* "libcloud/compute/ssh.py" - (("'ssh'") (string-append "'" (assoc-ref inputs "openssh") - "/bin/ssh" "'"))) - #t)) + (("'ssh'") + (string-append "'" (search-input-file inputs "/bin/ssh") + "'"))))) (add-after 'unpack 'patch-tests (lambda _ (substitute* "libcloud/test/compute/test_ssh_client.py" - (("class ShellOutSSHClientTests") + (("^class ShellOutSSHClientTests") "@unittest.skip(\"Guix container doesn't have ssh service\") - class ShellOutSSHClientTests")) - #t)) +class ShellOutSSHClientTests")))) (add-before 'check 'copy-secret (lambda _ (copy-file "libcloud/test/secrets.py-dist" - "libcloud/test/secrets.py") - #t))))) + "libcloud/test/secrets.py")))))) (inputs (list openssh)) (propagated-inputs |