unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: 54658@debbugs.gnu.org
Subject: bug#54658: "pypi->guix-package, no wheel" test fails
Date: Thu, 31 Mar 2022 22:26:06 +0200	[thread overview]
Message-ID: <cc350550b1f8f1a984657de8e4350595b67e0250.camel@telenet.be> (raw)

[-- Attachment #1: Type: text/plain, Size: 3586 bytes --]

I noticed "./pre-inst-env guix build guix" fails on my computer due to
"pypi->guix-package, no wheel" failing.  Here is an excerpt from the log:

> test-name: pypi->guix-package, no wheel
> location: /tmp/guix-build-guix-1.3.0-24.2fb4304.drv-
> 0/source/tests/pypi.scm:221
> source:
> + (test-assert
> +   "pypi->guix-package, no wheel"
> +   (mock ((guix import utils)
> +          url-fetch
> +          (lambda (url file-name)
> +            (match url
> +                   ("https://example.com/foo-1.0.0.tar.gz"
> +                    (begin
> +                      (mkdir-p "foo-1.0.0/src/bizarre.egg-info")
> +                      (with-output-to-file
> +                        "foo-1.0.0/src/bizarre.egg-
> info/requires.txt"
> +                        (lambda () (display test-requires.txt)))
> +                      (parameterize
> +                        ((current-output-port (%make-void-port
> "rw+")))
> +                        (system* "tar" "czvf" file-name "foo-
> 1.0.0/"))
> +                      (delete-file-recursively "foo-1.0.0")
> +                      (set! test-source-hash
> +                        (call-with-input-file file-name port-
> sha256))))
> +                   (" 
> https://example.com/foo-1.0.0-py2.py3-none-any.whl"
> +                    #f)
> +                   (_ (error "Unexpected URL: " url)))))
> +         (mock ((guix http-client)
> +                http-fetch
> +                (lambda (url . rest)
> +                  (match url
> +                         ("https://pypi.org/pypi/foo/json"
> +                          (values
> +                            (open-input-string test-json-1)
> +                            (string-length test-json-1)))
> +                         (" 
> https://example.com/foo-1.0.0-py2.py3-none-any.whl"
> +                          #f)
> +                         (_ (error "Unexpected URL: " url)))))
> +               (match (pypi->guix-package "foo")
> +                      (('package
> +                        ('name "python-foo")
> +                        ('version "1.0.0")
> +                        ('source
> +                         ('origin
> +                          ('method 'url-fetch)
> +                          ('uri ('pypi-uri "foo" 'version))
> +                          ('sha256 ('base32 (? string? hash)))))
> +                        ('build-system 'python-build-system)
> +                        ('propagated-inputs
> +                         ('list 'python-bar 'python-foo))
> +                        ('native-inputs ('list 'python-pytest))
> +                        ('home-page "http://example.com")
> +                        ('synopsis "summary")
> +                        ('description "summary")
> +                        ('license 'license:lgpl2.0))
> +                       (and (string=?
> +                              (bytevector->nix-base32-string test-
> source-hash)
> +                              hash)
> +                            (equal?
> +                              (pypi->guix-package "foo" #:version
> "1.0.0")
> +                              (pypi->guix-package "foo"))
> +                            (guard (c ((error? c) #t))
> +                                   (pypi->guix-package
> +                                     "foo"
> +                                     #:version
> +                                     "42"))))
> +                      (x (pk 'fail x #f))))))
> actual-value: #f
> result: FAIL

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

             reply	other threads:[~2022-03-31 20:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31 20:26 Maxime Devos [this message]
2022-04-13  6:48 ` bug#54658: "pypi->guix-package, no wheel" test fails Ludovic Courtès
2022-04-13  7:52   ` Maxime Devos
2022-04-13  8:51     ` Maxime Devos
2022-04-20 20:15       ` Ludovic Courtès
2022-04-21 16:21         ` Maxime Devos
2022-05-30  8:29 ` Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc350550b1f8f1a984657de8e4350595b67e0250.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=54658@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).