From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id fPeZOL46l2MfCgAAbAwnHQ (envelope-from ) for ; Mon, 12 Dec 2022 15:29:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0LO9Nr46l2MTBgEAG6o9tA (envelope-from ) for ; Mon, 12 Dec 2022 15:29:18 +0100 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 B6AB512264 for ; Mon, 12 Dec 2022 15:29:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4jnr-0006vI-2g; Mon, 12 Dec 2022 09:29:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4jnj-0006l7-Do for guix-patches@gnu.org; Mon, 12 Dec 2022 09:29:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4jnj-0006TK-5P for guix-patches@gnu.org; Mon, 12 Dec 2022 09:29:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4jnj-0007Xe-0g for guix-patches@gnu.org; Mon, 12 Dec 2022 09:29:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60009] [PATCH 16/18] gnu: python-flasgger: Update to 0.9.5. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Dec 2022 14:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60009 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 60009@debbugs.gnu.org Cc: Ricardo Wurmus Received: via spool by 60009-submit@debbugs.gnu.org id=B60009.167085529628947 (code B ref 60009); Mon, 12 Dec 2022 14:29:02 +0000 Received: (at 60009) by debbugs.gnu.org; 12 Dec 2022 14:28:16 +0000 Received: from localhost ([127.0.0.1]:53321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4jmx-0007Wp-Ry for submit@debbugs.gnu.org; Mon, 12 Dec 2022 09:28:16 -0500 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4jmu-0007Wa-PK for 60009@debbugs.gnu.org; Mon, 12 Dec 2022 09:28:13 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1670855290; cv=none; d=zohomail.com; s=zohoarc; b=U3O+89nMc5o9UBHHDDTKlnObB8Zz7mTekBMsT8SdXirnrE2alrCSitQMnzNQarzk3TEQOusSP6Mp55J5GUDZf6PsZNwWYEqJXGVrShofb1+vbx+k/GGk3bDS1xUBQ6ICxsb7BbmYerXR8sIGXD4n6slay2c0tM+MmkYkIT1wUAw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670855290; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=DdzFFxl8ayvO3/B/Mgj4uBgGBlmCueMnagH0IPXVWKA=; b=BzyznHvL+gwSOsl1LtbJyWNBqeiujkWxHlXttpq2KZENduvIyB68D+Ubw959ChlPERRs740jhm5QTLqMV8ogV9ulV4JYHX4bJC4IPBIhMGRlCa7dPIpknM+yqPr+SS5bAHPpNI8vTC0jiQu7du+WfwRCo4oYHViIEo/T53//FJI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670855290; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=DdzFFxl8ayvO3/B/Mgj4uBgGBlmCueMnagH0IPXVWKA=; b=SYTFG0cWWgOPgElYdcvgO6N+rH5ScAfTtZugwsZc0+Nb1xQHxQA2QeR+eMy/GIgk wrztZ2kJQjIYEjMV7WcHLdBy9IvbFqAdDYrZRP7O8z21S8Qm4bAGLsyDaWt5jU7qplG 9tPYLU/LKGplujEw7HvMFBBUm/32Z0XyIVFp/1LQ= Received: from localhost (48-111-142-46.pool.kielnet.net [46.142.111.48]) by mx.zohomail.com with SMTPS id 1670855288263517.0919665395581; Mon, 12 Dec 2022 06:28:08 -0800 (PST) From: Ricardo Wurmus Date: Mon, 12 Dec 2022 15:27:14 +0100 Message-Id: <20221212142716.9460-16-rekado@elephly.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221212142716.9460-1-rekado@elephly.net> References: <87h6y03dkr.fsf@elephly.net> <20221212142716.9460-1-rekado@elephly.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670855358; 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=DdzFFxl8ayvO3/B/Mgj4uBgGBlmCueMnagH0IPXVWKA=; b=pdDiuET+SdeVUyo8fq42RCY/JtWcfkGm2TIoTs27dBWO7JyqZIBEqds3di9YEeBawJKcpb FQcAxu64aUoWGnGlIMP6wGxBiy2BSUPqHtwRKFeapuZ+Bt5GzPORj1HPyJrTtwItEC962G 4Y/QMw2yHIJ6cA8/78ONVMPtm0rxttAUN+tUq7F3hGLQ5prPHf2MtdJXfanGw5u0QQc856 peSmXgHajTwpK67nRIF15dYTvoaBNKbXnh5CXIGWE1yN4Pe3cEm7foV9dAgJAy8hnbW+ci xPFCR/XGjj462ih5IL7DDlUc9flNf2dQ/6y/p7AyzNQHFMDq+r5CLyo+zZbT5Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=SYTFG0cW; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none ARC-Seal: i=2; s=key1; d=yhetil.org; t=1670855358; a=rsa-sha256; cv=fail; b=kfOgOl88hgKN9q0uRSnI0Ljcqyti2Dd8cLxbn/0GNiu2HVcgUOCFlf/GFJ3Kw0Vp6bfqc8 NnoAhHbsPWTc3piEoKxiWoeh9yrUJRGz52ku9mwRIrfA/xS7lUANucztftLHAFtgFT4KEx pN6NH2oUt+LDbNpHfrUYIy7sW3+WNwTLYtOX+0p4hUFWBdjaTWwRsielHhrB6nujMEw2OC 4GQjT8rKdlG3rKchtbL+hCO10t81V8EpTG23dRnF4pAJUGkyLv36g3wUm9SllX2lV25/fQ 9JoqjHwsfV6a5Uxi57UrgrdPLOyVgtAonIkRStNPMwGI6XtM/uOwiBmDdKdBUQ== X-Migadu-Spam-Score: 3.24 X-Spam-Score: 3.24 X-Migadu-Queue-Id: B6AB512264 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=SYTFG0cW; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none X-TUID: X2FNU2HcH/Ts * gnu/packages/python-xyz.scm (python-flasgger): Update to 0.9.5. [build-system]: Use pyproject-build-system. [arguments]: Remove custom 'check phase; add 'prepare-check phase; disable "test_swag" test via #:test-flags. [native-inputs]: Add python-apispec-webframeworks and python-flask-jwt. --- gnu/packages/python-xyz.scm | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a6983e4411..e273e71fa0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -21073,7 +21073,7 @@ (define-public python-apispec-webframeworks (define-public python-flasgger (package (name "python-flasgger") - (version "0.6.3") + (version "0.9.5") (source (origin (method git-fetch) @@ -21082,29 +21082,35 @@ (define-public python-flasgger (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "0yydxsyjnc0clbrjqb1n7587l6cdqvwdagwxk5hkx01qwdfbkvpn")))) - (build-system python-build-system) + (base32 "0a2djgfq905a4in16068qz0ikg88dm4nbckaamhaz2v9khllr0bi")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (substitute* "Makefile" - (("flake8 flasgger --ignore=F403") - "flake8 flasgger --ignore=E731,F403")) - (invoke "py.test")))))) + (list + ;; This test fails due to missing fixtures + #:test-flags '(list "-k" "not test_swag") + #:phases + '(modify-phases %standard-phases + (add-after 'unpack 'prepare-check + (lambda _ + ;; This requires a dummy package "flasgger_package" to be installed. + (delete-file "examples/package_example.py") + ;; These fail with an internal server error + (for-each delete-file '("examples/marshmallow_apispec.py" + "examples/validation.py"))))))) (propagated-inputs (list python-flask python-pyyaml python-jsonschema python-mistune python-six)) (native-inputs - (list python-decorator + (list python-apispec + python-apispec-webframeworks + python-decorator python-flake8 + python-flask-jwt python-flask-restful python-flex - python-pytest - python-pytest-cov python-marshmallow - python-apispec)) + python-pytest + python-pytest-cov)) (home-page "https://github.com/rochacbruno/flasgger/") (synopsis "Extract Swagger specs from your Flask project") (description "@code{python-flasgger} allows extracting Swagger specs -- 2.36.1