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.
This commit is contained in:
Marius Bakke 2022-01-11 00:49:24 +01:00
parent 11323c2d54
commit bc5b1dce07
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -19616,26 +19616,24 @@ (define-public python-apache-libcloud
"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