GNU bug report logs -
#27400
[PATCH] gnu: Add python-apache-libcloud.
Previous Next
Full log
Message #8 received at 27400 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Danny Milosavljevic <dannym <at> scratchpost.org> writes:
> * gnu/packages/python.scm (python-apache-libcloud, python2-apache-libcloud):
> New variables.
[...]
> + (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")
> + "'")))
Should this not be (assoc-ref inputs "openssh") "/bin/ssh"?
> + #t))
> + (add-after 'unpack 'patch-tests
> + (lambda _
> + (substitute* "./libcloud/test/test_file_fixtures.py"
> + ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-923>.
> + (("def _ascii") "def _raw_data(self, method, url, body, headers):
> + return (httplib.OK,
> + \"1234abcd\",
> + {\"test\": \"value\"},
> + httplib.responses[httplib.OK])
> + def _ascii"))
> + (substitute* "libcloud/test/compute/test_ssh_client.py"
> + (("class ShellOutSSHClientTests")
> + "@unittest.skip(\"Guix container doesn't have ssh service\")
> +class ShellOutSSHClientTests")
> + ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-924>.
> + (("'.xf0.x90.x8d.x88'") "b'\\xF0\\x90\\x8D\\x88'")
> + (("'.xF0', '.x90', '.x8D', '.x88'")
> + "b'\\xF0', b'\\x90', b'\\x8D', b'\\x88'"))
Odd that these substitutions are necessary. Could it be something with
our Python build? Or locale in the build environment? LGTM, anyway.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 8 years and 67 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.