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 R7dlBKZu8l7PUQAA0tVLHw (envelope-from ) for ; Tue, 23 Jun 2020 21:05:42 +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 IPZ2O6Vu8l7gXgAAB5/wlQ (envelope-from ) for ; Tue, 23 Jun 2020 21:05:41 +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 7F2E49402D6 for ; Tue, 23 Jun 2020 21:05:41 +0000 (UTC) Received: from localhost ([::1]:36906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnq6t-0005kU-5e for larch@yhetil.org; Tue, 23 Jun 2020 17:05:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnpwJ-0002yw-P4 for help-guix@gnu.org; Tue, 23 Jun 2020 16:54:43 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:41236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jnpwD-0003mb-Ax for help-guix@gnu.org; Tue, 23 Jun 2020 16:54:43 -0400 Received: by mail-wr1-x42d.google.com with SMTP id h15so1974780wrq.8 for ; Tue, 23 Jun 2020 13:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=SD9SfvVHl3GHUalivGjwMZT2aUxoqcpqFL6LuartyH8=; b=rCKAht7bpW2UoVtMZ0K+dok40MyGWfeHDbAL4RtaLWecsLrXNy+EaeVtirMp8G0B1F nTxL1R07UJtUaYak43NpNtMqSin+C/61zZledc+DHaHqP7erTdOYkNYzwsJp7ivBsCf+ FN6hpixfz7p7oG/t8opKo5jMbmxImVkjbXz0SdAHHUVYvM6W82ZcJMaj6KcJxgCEAkH2 HGcOKqu/MU6yGkZBMjv5JUnQKSDvyDrxIftt4cY4k3zK8R1qqAbOI1q+umA0B6ZdxsTF TUFx/HUnf8X6xwkV8++klm7bKIZ8Qd9BZ7+lgT3ZDOHsie6D6+3ByhnI1yh8FHA4fSx5 WDnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=SD9SfvVHl3GHUalivGjwMZT2aUxoqcpqFL6LuartyH8=; b=bov/phv3m0viZ9Y8q7WAQQIT64ZNqwzKxcF7zN5Qlq3VsH9HRb0yv9Ia5/wnuRZg7j gbVWMuFw1vDE2BG9bAV7XerpfILInfK4xyXeSLhLuZBgL7NN3uW1sbXnmwlqQ7APVr9h 5/TxSdEoXzqEKxgcUVNaz3D5t+kJWcpQMYbH2t3lP26ZYR2W4WbVScuYbuIK4ul/S8/Y PdlRW/H4IfFV9chbIKauBb6SeSZB7iG1hohEwA5Ake7ca6t7KU+rIV+pZCdtTOppcCYa 11DRaj4Ez2STTPVCrTE1jhLyc9S5jXn3CMxWdWvU6yi00vMJ1YGTDh2dYNrY7XwpnHXg Nf2g== X-Gm-Message-State: AOAM5323acd+cjk97SgRVv+WMBi+MbFzFwcyXAaMq74CS+nothtO/Zzr RPjZopV9z+dGn0ZJDVSqEd8wUDL3Eyo= X-Google-Smtp-Source: ABdhPJwntIdK8W6unKmBUKWyAvjuIpky8aY4P/K4LjVfwmdP4d2w5zeeImFxdZMam42/aUy5YDcEEw== X-Received: by 2002:adf:e7c2:: with SMTP id e2mr14947035wrn.179.1592945675523; Tue, 23 Jun 2020 13:54:35 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z25sm5134302wmk.28.2020.06.23.13.54.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 13:54:35 -0700 (PDT) From: zimoun To: help-guix Subject: failing to package attrs-strict for swh.model Date: Tue, 23 Jun 2020 22:54:34 +0200 Message-ID: <86k0zxqz91.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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=pass header.d=gmail.com header.s=20161025 header.b=rCKAht7b; dmarc=pass (policy=none) header.from=gmail.com; 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: -1.71 X-TUID: 6dXKxdID9LM3 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" Starting download of /gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz >From https://ci.guix.gnu.org/file/attrs-strict-0.1.0.tar.gz/sha256/0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96... download failed "https://ci.guix.gnu.org/file/attrs-strict-0.1.0.tar.gz/sha256/0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96" 404 "Not Found" Starting download of /gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz >From https://tarballs.nixos.org/sha256/0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96... download failed "https://tarballs.nixos.org/sha256/0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96" 404 "Not Found" Starting download of /gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz >From https://archive.softwareheritage.org/api/1/content/sha256:2665757562a9f641611e4e0a5adc412db514757c5f4bed954a3bf651c0f68d5a/raw/... download failed "https://archive.softwareheritage.org/api/1/content/sha256:2665757562a9f641611e4e0a5adc412db514757c5f4bed954a3bf651c0f68d5a/raw/" 404 "Not Found" failed to download "/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" builder for `/gnu/store/r6dgvrq486d8hdii9szz2filq85nbwjx-attrs-strict-0.1.0.tar.gz.drv' failed to produce output path `/gnu/store/9p0baqs1386gv5hhzrv5yrcj35klxpfi-attrs-strict-0.1.0.tar.gz' build of /gnu/store/r6dgvrq486d8hdii9szz2filq85nbwjx-attrs-strict-0.1.0.tar.gz.drv failed View build log at '/var/log/guix/drvs/r6/dgvrq486d8hdii9szz2filq85nbwjx-attrs-strict-0.1.0.tar.gz.drv.bz2'. cannot build derivation `/gnu/store/yn1vi5ank86870xc75w82pwbpahgv4vx-python-attrs-strict-0.1.0.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/yn1vi5ank86870xc75w82pwbpahgv4vx-python-attrs-strict-0.1.0.drv'failed --8<---------------cut here---------------end--------------->8--- 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 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--- Well, I am not a Python packager expert and I do not know how to debug. Advices welcome. :-) All the best, simon