mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-17 20:27:36 -05:00
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:
parent
11323c2d54
commit
bc5b1dce07
1 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue