From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: pypi URL change Date: Sun, 24 Apr 2016 17:27:06 +1000 Message-ID: <571C754A.1050506@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------060702020909010702040208" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auERo-0002bB-Os for guix-devel@gnu.org; Sun, 24 Apr 2016 03:27:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auERl-0005n7-Il for guix-devel@gnu.org; Sun, 24 Apr 2016 03:27:16 -0400 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:36374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auERl-0005mv-Bu for guix-devel@gnu.org; Sun, 24 Apr 2016 03:27:13 -0400 Received: by mail-pa0-x236.google.com with SMTP id bt5so321147pac.3 for ; Sun, 24 Apr 2016 00:27:12 -0700 (PDT) Received: from [192.168.1.105] ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id 28sm15184371pfs.1.2016.04.24.00.27.09 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Apr 2016 00:27:10 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: "guix-devel@gnu.org" This is a multi-part message in MIME format. --------------060702020909010702040208 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Today I tried using pypi-url to autogenerate a package that was only released today. Unfortunately, it seems that the URL scheme has changed and I was unable to download, though I believe this only affects newly released package versions. I found this on the nix mailing list: http://comments.gmane.org/gmane.linux.distributions.nixos/20158 > So, previously PyPI used URLs like : >//packages//{python version}/{name[0]}/{name}/{filename} > > Now it uses: >//packages//{hash[:2]}/{hash[2:4]}/{hash[4:]}/{filename} > Where hash is blake2b(file_content, digest_size=32).hexdigest().lower() Is there a blake2b implemented in Guile? In the meantime, the URL will have to be specified manually: 'guix import pypi ...' provides the correct and updated URL. ben --------------060702020909010702040208 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi,

Today I tried using pypi-url to autogenerate a package that was only released today. Unfortunately, it seems that the URL scheme has changed and I was unable to download, though I believe this only affects newly released package versions. I found this on the nix mailing list:
http://comments.gmane.org/gmane.linux.distributions.nixos/20158
>    So, previously PyPI used URLs like :
>        /packages/{python version}/{name[0]}/{name}/{filename}
>
>    Now it uses:
>        /packages/{hash[:2]}/{hash[2:4]}/{hash[4:]}/{filename}
>    Where hash is blake2b(file_content, digest_size=32).hexdigest().lower()

Is there a blake2b implemented in Guile? In the meantime, the URL will have to be specified manually: 'guix import pypi ...' provides the correct and updated URL.

ben
--------------060702020909010702040208--