From patchwork Sat Sep 11 23:46:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 32774 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0369727BBE3; Sun, 12 Sep 2021 00:47:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B6DA127BBE1 for ; Sun, 12 Sep 2021 00:47:23 +0100 (BST) Received: from localhost ([::1]:41902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPCiP-0005kW-SV for patchwork@mira.cbaines.net; Sat, 11 Sep 2021 19:47:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPCi6-0005kG-64 for guix-patches@gnu.org; Sat, 11 Sep 2021 19:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPCi5-0006aC-Sr for guix-patches@gnu.org; Sat, 11 Sep 2021 19:47:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mPCi5-0000n8-JF for guix-patches@gnu.org; Sat, 11 Sep 2021 19:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47910] [PATCH] gnu: python-wtforms: Update to 2.3.3 and adjust arguments+inputs. References: <432e457285cdabe78e9db89f760a387c@dismail.de> In-Reply-To: <432e457285cdabe78e9db89f760a387c@dismail.de> Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Sep 2021 23:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47910 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47910@debbugs.gnu.org Cc: Raghav Gururajan , jgart , ben@sturm.com.au Received: via spool by 47910-submit@debbugs.gnu.org id=B47910.16314039872999 (code B ref 47910); Sat, 11 Sep 2021 23:47:01 +0000 Received: (at 47910) by debbugs.gnu.org; 11 Sep 2021 23:46:27 +0000 Received: from localhost ([127.0.0.1]:41618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPChX-0000mJ-31 for submit@debbugs.gnu.org; Sat, 11 Sep 2021 19:46:27 -0400 Received: from out1.migadu.com ([91.121.223.63]:46023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPChU-0000mB-Il for 47910@debbugs.gnu.org; Sat, 11 Sep 2021 19:46:25 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1631403983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RwwWskfRk6tx9thtF870DBddqrGqTWX08uKss+EI45Q=; b=oEnG+bRayx9Xugo9gCsh75NaspMzI+VssdvC8pU0L+wj426eJzXzPFSB2VUbJmSrqrPets wAJGzuHbdsl3DfZz60QL4ASeIUGBalDwuJvraZ9/iouC5nlL0tJ5Lf1ye0CQPWYsjim71q TZ7sAqYRpao+9sIO7ERoQzJbCVYQEfl1mFkeXfkZL9yXxXWekUWPd51mh7pSXrEYrYNMw4 hPUiQXs+4SaP93+Can2PY3yuBnrXL6nh0OcPLHo9neZKlq+f/ob7q0T0yhjweatKKkceum Q9bXRGyh3UehmL3zwiZAkYgTOjGL4hbbi61yo9HQTuB3XOs8rWlp4szAtCX6ZA== Date: Sat, 11 Sep 2021 19:46:20 -0400 Message-Id: <20210911234620.3037-1-rg@raghavgururajan.name> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches X-Patchwork-Original-From: Raghav Gururajan via Guix-patches via From: Raghav Gururajan X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-wtforms)[version]: Update to 2.3.3. [phases](remove-django-test): Remove phase. (check): Replace with custom phase. [native-inputs]: Remove unzip. Add python-coverage, python-dateutil, python-pep8 and python-sqlalchemy. [propagated-inputs]: Add python-babel, python-email-validaor and python-markupsafe. Co-authored-by: jgart --- gnu/packages/python-web.scm | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 32b4aa4bf0..bd390d371d 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4150,28 +4150,33 @@ addon modules.") (define-public python-wtforms (package (name "python-wtforms") - (version "2.1") + (version "2.3.3") (source (origin (method url-fetch) - (uri (pypi-uri "WTForms" version ".zip")) + (uri (pypi-uri "WTForms" version ".tar.gz")) (sha256 (base32 - "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz")))) + "17427m7p9nn9byzva697dkykykwcp2br3bxvi8vciywlmkh5s6c1")))) (build-system python-build-system) (arguments - '(#:phases + `(#:phases (modify-phases %standard-phases - (add-after 'unpack 'remove-django-test - ;; Don't fail the tests when the inputs for the optional tests cannot be found. - (lambda _ - (substitute* - "tests/runtests.py" - (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "") - (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") "")) - #t))))) + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "setup.py" "compile_catalog") + (invoke "coverage" "run" "tests/runtests.py" "--with-pep8"))))))) (native-inputs - `(("unzip" ,unzip))) + `(("python-coverage" ,python-coverage) + ("python-dateutil" ,python-dateutil) + ("python-pep8" ,python-pep8) + ("python-sqlalchemy" ,python-sqlalchemy))) + (propagated-inputs + `(("python-babel" ,python-babel) + ("python-email-validator" ,python-email-validator) + ("python-markupsafe" ,python-markupsafe))) (home-page "http://wtforms.simplecodes.com/") (synopsis "Form validation and rendering library for Python web development")