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 ms0.migadu.com with LMTPS id KMBSKYRhFGHp8wAAgWs5BA (envelope-from ) for ; Thu, 12 Aug 2021 01:47:16 +0200 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 KF2/JIRhFGHRNAAAbx9fmQ (envelope-from ) for ; Wed, 11 Aug 2021 23:47:16 +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 5A6C11DCED for ; Thu, 12 Aug 2021 01:47:16 +0200 (CEST) Received: from localhost ([::1]:57960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDxwJ-0006uq-E7 for larch@yhetil.org; Wed, 11 Aug 2021 19:47:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDxw6-0006uJ-Fv for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDxw6-0006aX-9M for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDxw6-0001JA-7n for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50018] [PATCH 05/19] gnu: python-aws-sam-translator: Change source for tests. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Aug 2021 23:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50018@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50018-submit@debbugs.gnu.org id=B50018.16287255664777 (code B ref 50018); Wed, 11 Aug 2021 23:47:02 +0000 Received: (at 50018) by debbugs.gnu.org; 11 Aug 2021 23:46:06 +0000 Received: from localhost ([127.0.0.1]:36924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxvB-0001Ez-Kb for submit@debbugs.gnu.org; Wed, 11 Aug 2021 19:46:05 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxvA-0001Df-FB for 50018@debbugs.gnu.org; Wed, 11 Aug 2021 19:46:04 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id C6B6A240103 for <50018@debbugs.gnu.org>; Thu, 12 Aug 2021 01:45:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628725558; bh=mAf2lKNlAdk2+4EQaTzVa6uG2BsPD6FwIOeRfcTeZCs=; h=From:To:Cc:Subject:Date:From; b=cXuX99oy/zijDe/dH76BhZX6FZh+L4Yak8J5LYxtPKyZgCDxSlTcjSx80biQmOIeR p8BbpTdzAcUrSmDkdft6pa5efStNHSCAjZmqDW0uZMJ22uA+qNueEaU15ttFtXAw0m cyM2YokDlTZUtSnyJGVpf3kF4191j6xwyyNuEnNAMnImUjh3h1xjkkkp7QgmjtP27L FO8ik29WPTecvWGpxheGH8PN+xtxwHvIFnECnqqlgwVepYhhRBiNlqmUK0AV5XCU8G MfDJCPRExZWH8FXjMfKGb9AseJI7Qgnph5IpDCNFV1lmEdyPyTNO5nqcuu/iDuGgB/ XIgrGqgkdnNbw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GlRKK6Rtbz6tm4; Thu, 12 Aug 2021 01:45:57 +0200 (CEST) From: Vinicius Monego Date: Wed, 11 Aug 2021 23:44:57 +0000 Message-Id: <20210811234511.32450-5-monego@posteo.net> In-Reply-To: <20210811234511.32450-1-monego@posteo.net> References: <20210811234511.32450-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628725636; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DOMgTJ/Ap2q891jDXHdqHY4EWIzz6bstWVGzromkU54=; b=BGOACuyk5sZOIm7egNFM/s5LpAKSX7tEsT+3oQzBFjWxMJOBjiynRw7y/qJkBidCnFiN7J wcGwmxYLAtYnguOX6SBejlhgT31RzHC5n1XAZ/2kq2cm+hfUdlWxg4BZZbB2AJliXZ2Ltc +IDtdlguioGO2punAPoYchXmYdyJPuqCpF20ddWzgALFGzJbrN0JT4F0LPIToVoldjzfr0 9B+JL2HYZdF6whOagoQLXoKEEuPgcLYmmKitEfXmaCDb5lmJ6hDaZsjeltJm44T2/LrRDu xYgZLjbUEHej6kjCcLCGRT2smfAxtG8TQkRRaKTEOiMVg4GrBNtvu/NYKgBShA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628725636; a=rsa-sha256; cv=none; b=phDLtmWNEHDm6+EzDD+3OXiZzj7Ifc/MnfaXOnG5r68BxOHecLl4nWIE+ws0mRdVQzYzc6 V4quqQxnULKnISiPgL7jExRj/4goaXD5RR8ojfWPxGETeWu34Vdry25IxQdgYub/rOz8Kc 17HuQGSgEgTTmoHamqF6K53tuAH4zlDm/CpZOBeYLOcCFRS888zrSo54s/TeLpJk101Tm0 hLVxV7Ftikl2MKj+saE3ZplpbNBYn0Qzz0yKZ1R9yhsWjtycMeEvy5Bi2Z5VrXDygrytLQ WIE+J0ZMz+zgfi1737DjX49ji1Ic5//Fvx+jcqlk7qqsTH1XV/fR86GSbKi33g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=cXuX99oy; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=cXuX99oy; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5A6C11DCED X-Spam-Score: 3.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: oCeYvowFO7d8 * gnu/packages/python-web.scm (python-aws-sam-translator)[source]: Fetch from GitHub. Make some cosmetic changes. [arguments]: Change explanation on why tests are disabled. Make some cosmetic changes. [native-inputs]: Add python-black, python-click, python-coverage, python-dateparser, python-docopt, python-flake8, python-mock, python-parameterized, python-pathlib2, python-pylint, python-pytest, python-pytest-cov, python-pyyaml, python-requests. --- gnu/packages/python-web.scm | 57 +++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 18 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 787300e1f8..041fb2d7b7 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -364,26 +364,47 @@ WSGI. This package includes libraries for implementing ASGI servers.") (package (name "python-aws-sam-translator") (version "1.38.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "aws-sam-translator" version)) - (sha256 - (base32 - "1djwlsjpbh13m4biglimrm9lq7hmla0k29giay7k3cjsrylxvjhf")))) + (source + (origin + ;; PyPI tarball does not include tests. + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/serverless-application-model") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nn9jfqz13kzmxm0r9vy24p8sqxv3mrm5d3lx7ah6rc581q8nv1k")))) (build-system python-build-system) (arguments - `(;; XXX: Tests are not distributed with the PyPI archive, and would - ;; introduce a circular dependency on python-cfn-lint. - #:tests? #f - #:phases (modify-phases %standard-phases - (add-after 'unpack 'loosen-requirements - (lambda _ - ;; The package needlessly specifies exact versions - ;; of dependencies, when it works fine with others. - (substitute* "requirements/base.txt" - (("(.*)(~=[0-9\\.]+)" all package version) - package)) - #t))))) + ;; 25 test failures divided in the following two errors: + ;; 'botocore.exceptions.NoRegionError: You must specify a region.' + ;; AttributeError: 'TestDeploymentPreferenceCollection' object has + ;; no attribute 'function_logical_id'. + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'loosen-requirements + (lambda _ + ;; The package needlessly specifies exact versions + ;; of dependencies, when it works fine with others. + (substitute* "requirements/base.txt" + (("(.*)(~=[0-9\\.]+)" all package version) + package))))))) + (native-inputs + `(("python-black" ,python-black) + ("python-click" ,python-click) + ("python-coverage" ,python-coverage) + ("python-dateparser" ,python-dateparser) + ("python-docopt" ,python-docopt) + ("python-flake8" ,python-flake8) + ("python-mock" ,python-mock) + ("python-parameterized" ,python-parameterized) + ("python-pathlib2" ,python-pathlib2) + ("python-pylint" ,python-pylint) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pyyaml" ,python-pyyaml) + ("python-requests" ,python-requests))) (propagated-inputs `(("python-boto3" ,python-boto3) ("python-jsonschema" ,python-jsonschema) -- 2.30.2