From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 31 16:26:30 2022 Received: (at submit) by debbugs.gnu.org; 31 Mar 2022 20:26:30 +0000 Received: from localhost ([127.0.0.1]:39969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1na1NG-0000Xe-6c for submit@debbugs.gnu.org; Thu, 31 Mar 2022 16:26:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:57078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1na1NE-0000XW-4i for submit@debbugs.gnu.org; Thu, 31 Mar 2022 16:26:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1na1ND-0006qS-Vx for bug-guix@gnu.org; Thu, 31 Mar 2022 16:26:28 -0400 Received: from [2a02:1800:110:4::f00:1a] (port=59094 helo=albert.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1na1N8-000461-PK for bug-guix@gnu.org; Thu, 31 Mar 2022 16:26:24 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by albert.telenet-ops.be with bizsmtp id D8SH2700R4UW6Th068SJWC; Thu, 31 Mar 2022 22:26:18 +0200 Message-ID: Subject: "pypi->guix-package, no wheel" test fails From: Maxime Devos To: bug-guix@gnu.org Date: Thu, 31 Mar 2022 22:26:06 +0200 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-JQhjBBEEtyaw1Gqwa98k" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1648758378; bh=A4yOVBLkEyKFONyejk88Nlad2u5OinlDw1rhd+0zo+Q=; h=Subject:From:To:Date; b=VGM3Mst0rmFbAei1VeOwcbAB7M9GEv+RBBRprYZp4cvkt+Z1Z0XDsleEUFKZgYF3w 6vtWlq9myfhcuggC9k5Iy/UPqWWAB60kswqFG5DZEVHfjxcLkn/JFq7T4xoo+iHl/r qjoS82wQ571qsA7Owc1VqIIzsqOn3egodrULcnyb0fYj2modGC0+noZQIE0rnVakPy RM8K3Qjux3QlYPz0jAuejyF3pQ/tL+YH0c8HgoZmN1lhG+LTT7EOMksnzbpRBpFwZR J0YUOJL4sjrdglxkb2QuwLb1OFCC+UJ3y7Pposy0gkEY4lLsB6EbxW0SwmbYYkJqBJ nxTjTBomjvMkA== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:110:4::f00:1a (failed) Received-SPF: pass client-ip=2a02:1800:110:4::f00:1a; envelope-from=maximedevos@telenet.be; helo=albert.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-JQhjBBEEtyaw1Gqwa98k Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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)))) > + ("=20 > 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))) > + ("=20 > 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=3D? > + (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. --=-JQhjBBEEtyaw1Gqwa98k Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYkYOXhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7gCEAPwKNk6K/TzH6KzWXlDW0x9Mr+RU hBPKCxf9bNlTPeuaNAD/Z74IrbDXU0J1IAIsmmWfa649bBZInFwb21gqk9WUbwg= =/A5W -----END PGP SIGNATURE----- --=-JQhjBBEEtyaw1Gqwa98k--