From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mNO/EFHM9F7TAQAA0tVLHw (envelope-from ) for ; Thu, 25 Jun 2020 16:09:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WKFyDFHM9F4rQwAAbx9fmQ (envelope-from ) for ; Thu, 25 Jun 2020 16:09:53 +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 6A3DB94051D for ; Thu, 25 Jun 2020 16:09:52 +0000 (UTC) Received: from localhost ([::1]:39916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joURi-0007JJ-0k for larch@yhetil.org; Thu, 25 Jun 2020 12:09:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joU0C-00077f-7N for help-guix@gnu.org; Thu, 25 Jun 2020 11:41:25 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:40053) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joU08-0007wN-TW for help-guix@gnu.org; Thu, 25 Jun 2020 11:41:23 -0400 Received: by mail-wm1-x330.google.com with SMTP id f139so6413211wmf.5 for ; Thu, 25 Jun 2020 08:41:20 -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=ZY5DEUyja6NTc3qBG3sXJ+ac8eYXo5EXdlHn3CtRHnE=; b=lPaO8wiQVRFAa9PU3jCI1U1X8fA8qLAsDdSUmaNybFgeSh92DDdV4lOiTATqN2pICK nZZU6cxP20ZVVSn7edxDyxOnaFZ09mQ+pizYqlXMVhgqoxgvNUzBj58FVpshkEDsjy5g wxbO0nxTLeMybQw8WiH0vsGHAtfgRTBEsQxyweLRmA80q2839yBj3q+DzA96ewK48I6m u5PKoVkIO5Iw13ajbRn7i3a1vOHIiTqBwLrpjKxWj1HxUI/xMkaUvU4bHuM0h5X15EJR cxtRESmFM+1j8fK5rijaqKpyvzNjwgK/KitXHb3rOCFUAzZWnV1JUd7c8nGDI3YA30U4 rBtw== 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=ZY5DEUyja6NTc3qBG3sXJ+ac8eYXo5EXdlHn3CtRHnE=; b=fMKzNx4xd3BDYiIwuLU6QTon0WeS28l08q6WBNwJm7uHo81N2CHrUSE9T1zF7AzOtu ANZkUeQ0pryg11O5lpNck8xHXH/er62fjo2MFzkZYTw/EdsBxWsm9cDedctUp7IGmFqD FzxeGUMBG4OS3/9g1VXio4b6m6Utt4dZl86Gnb6/Uf9Btmxx0wj/AfE9ZuS/0xGdv4lX Htb6898mgk8YLvodRjvnGcYMTN4ilw7ASAM6FeHjSfIHy9FYARnLBPWS5xZCgw2+0NDi KxqwxGFxHDDXBKpFppu2J3HP2SwLsZe6KnwsBkr8122OUB/0aqc2xHawrwcmVSMaJ6uQ Ishg== X-Gm-Message-State: AOAM532eCdtrGhrZZVk9fhShvdnPO6fYgKrYCZbyHJ7SBH0oLrEXE5nS FXDgohPnWsVOg1aB1D4xaTCRNNuLlyk= X-Google-Smtp-Source: ABdhPJzoqdmACBYJERloeOEE3Tpy/NNk002tayPkJV+gfHD1C2hUMxbWx3H29JBC52oTBlCjoW5dzw== X-Received: by 2002:a7b:cf31:: with SMTP id m17mr3811712wmg.47.1593099679120; Thu, 25 Jun 2020 08:41:19 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id 30sm28559721wrm.74.2020.06.25.08.41.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 08:41:18 -0700 (PDT) From: zimoun To: help-guix Subject: fail install python-swh-model Date: Thu, 25 Jun 2020 17:41:17 +0200 Message-ID: <867dvvb1b6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x330.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=lPaO8wiQ; 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: fnssFOeUe4+a --=-=-= Content-Type: text/plain Dear, I am trying to package swh.model, as reported previously. :-) Well, I simply run: guix import pypi -r swh.model and then using the wise advises of Marius, everything almost works. However, ./pre-inst-env guix install python-swh-model -p /tmp/swh GUIX_PROFILE="/tmp/swh" . "$GUIX_PROFILE/etc/profile" swh-identify foo returns this error: --8<---------------cut here---------------start------------->8--- Traceback (most recent call last): File "/gnu/store/09a5iq080g9b641jyl363dr5jkkvnhcn-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master ws.require(__requires__) File "/gnu/store/09a5iq080g9b641jyl363dr5jkkvnhcn-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/gnu/store/09a5iq080g9b641jyl363dr5jkkvnhcn-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py", line 791, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (attrs-strict 0.0.0 (/gnu/store/6ia5l999ch60kxqa14yf8v3s9hdv2vfs-python-attrs-strict-0.1.0/lib/python3.8/site-packages), Requirement.parse('attrs_strict>=0.0.7'), {'swh.model'}) --8<---------------cut here---------------end--------------->8--- Well, because there is: --8<---------------cut here---------------start------------->8--- + (propagated-inputs + `(("python-attrs" ,python-attrs) + ("python-attrs-strict" ,python-attrs-strict) --8<---------------cut here---------------end--------------->8--- in the definition of "python-swh-model", I should miss something to correctly propagate it. What could it be? All the best, simon --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-DRAFT.patch Content-Transfer-Encoding: quoted-printable Content-Description: draft >From ef93de4b552be6e8174ff4d6853372a452fdce83 Mon Sep 17 00:00:00 2001 From: zimoun Date: Thu, 25 Jun 2020 17:34:37 +0200 Subject: [PATCH] DRAFT: --- gnu/packages/python-xyz.scm | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 10cf27dbd7..32fe1ea58a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -81,6 +81,7 @@ ;;; Copyright =C2=A9 2020 Josh Holland ;;; Copyright =C2=A9 2020 Yuval Kogman ;;; Copyright =C2=A9 2020 Michael Rohleder +;;; Copyright =C2=A9 2020 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -20139,3 +20140,67 @@ For the most part it's transliterated from C, the = major differences are: @end itemize ") (license license:gpl3+))) + +(define-public python-attrs-strict + (package + (name "python-attrs-strict") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "attrs_strict" version)) + (sha256 + (base32 + "0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-attrs" ,python-attrs))) + (home-page "https://github.com/bloomberg/attrs-strict") + (synopsis "Runtime validators for attrs") + (description + "Package that contains runtime validation for @code{attrs} data class= es +based on the types existing in the typing module.") + (license license:asl2.0))) + +(define-public python-swh-model + (package + (name "python-swh-model") + (version "0.3.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "swh.model" version)) + (sha256 + (base32 + "15qgaiz3vx2r4ww3bb1x6pafg4nh275kxvyx0ppiby8r0qp27g6q")))) + (build-system python-build-system) + (propagated-inputs + `(("python-attrs" ,python-attrs) + ("python-attrs-strict" ,python-attrs-strict) + ("python-dateutil" ,python-dateutil) + ("python-hypothesis" ,python-hypothesis) + ("python-iso8601" ,python-iso8601) + ("python-pyblake2" ,python-pyblake2) + ("python-vcversioner" ,python-vcversioner))) + (native-inputs + `(("python-click" ,python-click) + ("python-dulwich" ,python-dulwich) + ("python-pytest" ,python-pytest) + ("python-pytz" ,python-pytz))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest")))))) + (home-page "https://forge.softwareheritage.org/diffusion/DMOD/") + (synopsis "Tools for Software Heritage data model") + (description + "This package implements the Data model of the Software Heritage proj= ect +used to archive source code artifacts. + +The module defines the notion of Persistent Identifier (PID) and provides +tools to compute them.") + (license license:gpl3))) --=20 2.26.2 --=-=-=--