Subject: bug#37071: guix import pypi httpie fails

From: Nicolas Goaziou <[email-masked]>
Date: Sun, 18 Aug 2019 13:28:03 +0200

Hello,

Robert Vollmert <[email-masked]> writes:

> $ guix import pypi httpie
>  …0.2.tar.gz  83KiB                   291KiB/s 00:00 [##################] 100.0%
>  ….py3-none-any.whl  58KiB            201KiB/s 00:00 [##################] 100.0%
> guix import: warning: Failed to extract file: httpie-1.0.2.dist-info/METADATA from wheel.
> Backtrace:

[...]

>
> guix/build/download.scm:728:8: In procedure maybe-expand-mirrors:
> In procedure struct_vtable: Wrong type argument in position
> 1 (expecting struct): #f

FWIW, I cannot reproduce it. I get

  (package
    (name "python-httpie")
    (version "1.0.2")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "httpie" version))
        (sha256
          (base32
            "1ax22jh5lpjywpj7lsl072wdhr1pxiqzmxhyph5diwxxzs2nqrzw"))))
    (build-system python-build-system)
    (propagated-inputs
      `(("python-colorama" ,python-colorama)
        ("python-pygments" ,python-pygments)
        ("python-requests" ,python-requests)))
    (home-page "http://httpie.org/")
    (synopsis
      "HTTPie - a CLI, cURL-like tool for humans.")
    (description
      "HTTPie - a CLI, cURL-like tool for humans.")
    (license license:bsd-3))

Regards,

-- 
Nicolas Goaziou