From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EKUkNT+z817SPgAA0tVLHw (envelope-from ) for ; Wed, 24 Jun 2020 20:10:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6FXwMD+z815SewAAB5/wlQ (envelope-from ) for ; Wed, 24 Jun 2020 20:10:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4D3DD940539 for ; Wed, 24 Jun 2020 20:10:39 +0000 (UTC) Received: from localhost ([::1]:52040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joBjA-0002Jg-SO for larch@yhetil.org; Wed, 24 Jun 2020 16:10:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joBj0-0002I4-2a for help-guix@gnu.org; Wed, 24 Jun 2020 16:10:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54760) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joBiz-0005lq-NX; Wed, 24 Jun 2020 16:10:25 -0400 Received: from ti0006q161-3115.bb.online.no ([88.95.106.80]:51614 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1joBiz-00038p-45; Wed, 24 Jun 2020 16:10:25 -0400 From: Marius Bakke To: zimoun , help-guix Subject: Re: failing to package attrs-strict for swh.model In-Reply-To: <86k0zxqz91.fsf@gmail.com> References: <86k0zxqz91.fsf@gmail.com> Date: Wed, 24 Jun 2020 22:10:22 +0200 Message-ID: <87imfg6x8x.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: HeM//Au49OTM --=-=-= Content-Type: text/plain zimoun writes: > Dear, > > I am trying to package "swh.model" which is a CLI tool developed by > Software Heritage. It allows to compute SWHID which is their internal > hash tag. This package is on PyPI, so I did: > > guix import pypi -r swh.model > > which returns 2 packages: "python-attrs-srtict" and "swh.model". > > > Aside some minor tweaks about the license, synopsis and description I > added them to "gnu/packages/python-xyz.scm" and then I simply have tried > to build: > > ./pre-inst-env guix build python-attrs-strict > > Well, the first unexpected thing is an 404 error: > > --8<---------------cut here---------------start------------->8--- > building /gnu/store/r6dgvrq486d8hdii9szz2filq85nbwjx-attrs-strict-0.1.0.tar.gz.drv... > > Starting download of /gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz >>>From https://files.pythonhosted.org/packages/source/a/attrs-strict/attrs-strict-0.1.0.tar.gz... > download failed "https://files.pythonhosted.org/packages/source/a/attrs-strict/attrs-strict-0.1.0.tar.gz" 404 "Not Found" [...] > What do I miss? > > Then, from the PyPI webpage, I download the tarball by hand (wget) and > then I run: > > /pre-inst-env guix build python-attrs-strict \ > --with-source=python-attrs-strict=attrs_strict-0.1.0.tar.gz I notice the file name in this command is "attrs_strict". Probably the importer picked the wrong file name and you need to change it to (pypi-uri "attrs_strict" version). > which fails at the check phase. Well, I have added as 'native-inputs' > the packages "python-pytest" and "python-pluggy". And I add these > lines: > > --8<---------------cut here---------------start------------->8--- > (arguments > `(#:phases (modify-phases %standard-phases > (replace 'check > (lambda _ > (invoke "pytest") > #t))))) > --8<---------------cut here---------------end--------------->8--- > > But the tests is still failing with the same message at this end: > > --8<---------------cut here---------------start------------->8--- > AttributeError: type object 'Callable' has no attribute '_abc_registry' > --8<---------------cut here---------------end--------------->8--- Can you paste the full package definition? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7zsy4ACgkQoqBt8qM6 VPqgfAgAgkV/0F/wgXnRPed4EfhCy/Bv5o6RaRjjbKqhbU25oFJWkKsmveguGWMJ grr6x0NnSrTvcTVXRJwqaUeSWlvvIl2EMEeeuC6GFjfADypgmgsJYpfdKFG2V97e Ofy5rYMONMZ3vB90vJQIlc1VUujsu/kF2RtdnXtxOJ2I9Xe3mNBqeq7HpA6eQmJf oFdCkjvQ8o3V40xML2dGi3NFuKazhyqExTJj0gGscgTOXAB9AQjwYDjiQICUUSq/ U9jdwPMjruwkA1DWIWbvdRAUoAHKqUmFN1+s4qbRSyzB4UyNbRsELrzI/Sqi9ppi dyGE9TeriTwXSa+wCuQG2XzB+2Jniw== =v4lZ -----END PGP SIGNATURE----- --=-=-=--