From patchwork Sun Mar 17 16:32:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 61911 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 5AF0827BBEA; Sun, 17 Mar 2024 16:35:06 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1C3DB27BBEB for ; Sun, 17 Mar 2024 16:35:01 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rltSv-0002Ct-6q; Sun, 17 Mar 2024 12:34:29 -0400 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 1rltSt-0002Cg-Jp for guix-patches@gnu.org; Sun, 17 Mar 2024 12:34:27 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rltSt-0003wY-BY; Sun, 17 Mar 2024 12:34:27 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rltTS-0004gg-Gt; Sun, 17 Mar 2024 12:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69486] [PATCH v2] gnu: Add python-pypugjs. References: <2973fb0b7bacc392c1c2a3a5bdb7539f19c33268.1709284746.git.tanguy@bioneland.org> In-Reply-To: <2973fb0b7bacc392c1c2a3a5bdb7539f19c33268.1709284746.git.tanguy@bioneland.org> Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 17 Mar 2024 16:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69486 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69486@debbugs.gnu.org Cc: Tanguy Le Carrour , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 69486-submit@debbugs.gnu.org id=B69486.171069328617962 (code B ref 69486); Sun, 17 Mar 2024 16:35:02 +0000 Received: (at 69486) by debbugs.gnu.org; 17 Mar 2024 16:34:46 +0000 Received: from localhost ([127.0.0.1]:58796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rltTC-0004fe-8J for submit@debbugs.gnu.org; Sun, 17 Mar 2024 12:34:46 -0400 Received: from smtp-42a8.mail.infomaniak.ch ([84.16.66.168]:45827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rltT8-0004fO-Es for 69486@debbugs.gnu.org; Sun, 17 Mar 2024 12:34:44 -0400 Received: from smtp-4-0000.mail.infomaniak.ch (unknown [10.7.10.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4TyNpt2NKzzMpvb3; Sun, 17 Mar 2024 17:33:58 +0100 (CET) Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4TyNps6GsrzF09; Sun, 17 Mar 2024 17:33:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bioneland.org; s=20230804; t=1710693238; bh=090DaAYTzjoIFe6FBwjOozsX6P5DJRGOs9V205QCTS4=; h=From:To:Cc:Subject:Date:From; b=E48CS0Q7+vV7JPrOuRZtE8x7wd2IZP6qpknP1f/PbmrcPi9P20L7g/nVaOK2Kj3c8 RBSmrZGutExham5aMheUY5MQEOSnfsoZgwldFDSbDqqINgha4RGYZ5VIZ9PjjlB3t0 jZetR0jdt9dpoIppvykUPkEIvssOPcScbOA8GgKR+1sIyupFqIQizEf24sm2I3AM1S TQ1Ifm0T+xQEWhH4RfgdmiMiH18myZW2mWtOw25o7knfZQShcWi4r3tVm5zfjxjDOl 7NG2fgaeoXcNu/4EzVFfROpKPrq4lFv/OIfRUi/yTiQZrUrqv8hiS49Du2mVuwpFjH EITfq3t8ZKrhQ== From: Tanguy Le Carrour Date: Sun, 17 Mar 2024 17:32:31 +0100 Message-ID: <82876190057cca585a3b936ec7e0ff03b31db318.1710692958.git.tanguy@bioneland.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Infomaniak-Routing: alpha 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi Guix, V2 fixes problems reported by QA: `python-pip` and `python-setuptools` should not be part of the inputs. Tanguy * gnu/packages/python-xyz.scm (python-pypugjs): New variable. Change-Id: I050ab42d0149fcffddcf6b12dd9c1ddea23f84c9 Signed-off-by: Tanguy Le Carrour --- gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) base-commit: 93aefca7bab5f5b40164176e3224221d26d708f1 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 232b5d6999..e314ba9fab 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6056,6 +6056,52 @@ (define-public python-jinja2-time templates. A format string can be provided to control the output.") (license license:expat))) +(define-public python-pypugjs + (package + (name "python-pypugjs") + (version "5.9.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kakulukia/pypugjs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zj7a560h973cl7brfw1nmyhgm8rp8j80wnih0shvhmw4ql23lpa")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + ;; Our pyramid is outdated and pyramid-mako is not packaged. + (add-after 'unpack 'disable-pyramid + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("'pyramid") + "#'pyramid")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "pytest" "-v" + "pypugjs/testsuite/"))))))) + (native-inputs (list python-coverage + python-django + python-jinja2 + python-flake8 + python-flask + python-mako + python-nose + python-poetry-core + python-pytest + python-tornado-6 + python-wheel)) + (propagated-inputs (list python-charset-normalizer python-six)) + (home-page "https://github.com/kakulukia/pypugjs") + (synopsis "Convert Pug source files into different template languages") + (description + "PugJS syntax template adapter for Django, Jinja2, Mako and Tornado templates.") + (license license:expat))) ;; MIT + (define-public python-pysdl2 (package (name "python-pysdl2")