From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yKMqI8kMfmSBcQAASxT56A (envelope-from ) for ; Mon, 05 Jun 2023 18:26:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EMc3I8kMfmQ6ZgAA9RJhRA (envelope-from ) for ; Mon, 05 Jun 2023 18:26:49 +0200 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 22ED33123C for ; Mon, 5 Jun 2023 18:26:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6D1x-0001WF-VY; Mon, 05 Jun 2023 12:26:05 -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 1q6D1w-0001VA-KV for guix-patches@gnu.org; Mon, 05 Jun 2023 12:26:04 -0400 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 1q6D1w-0001da-C5 for guix-patches@gnu.org; Mon, 05 Jun 2023 12:26:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6D1w-0004RR-7N; Mon, 05 Jun 2023 12:26:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55474] [PATCH v4 06/19] gnu: Add python-jinjalint. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Mon, 05 Jun 2023 16:26:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55474 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55474@debbugs.gnu.org Cc: ngraves@ngraves.fr, lars@6xq.net X-Debbugs-Original-Xcc: lars@6xq.net Received: via spool by 55474-submit@debbugs.gnu.org id=B55474.168598232916840 (code B ref 55474); Mon, 05 Jun 2023 16:26:04 +0000 Received: (at 55474) by debbugs.gnu.org; 5 Jun 2023 16:25:29 +0000 Received: from localhost ([127.0.0.1]:50165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6D1N-0004NW-Ci for submit@debbugs.gnu.org; Mon, 05 Jun 2023 12:25:29 -0400 Received: from 14.mo550.mail-out.ovh.net ([178.32.97.215]:42541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6D1I-0004Mc-NX for 55474@debbugs.gnu.org; Mon, 05 Jun 2023 12:25:25 -0400 Received: from director10.ghost.mail-out.ovh.net (unknown [10.109.156.215]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id B22EE252B0 for <55474@debbugs.gnu.org>; Mon, 5 Jun 2023 16:25:23 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-rc6kl (unknown [10.110.115.102]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 6CA581FDE8; Mon, 5 Jun 2023 16:25:23 +0000 (UTC) Received: from ngraves.fr ([37.59.142.101]) by ghost-submission-6684bf9d7b-rc6kl with ESMTPSA id 5kdEGHMMfmQ0cz8AHCsQzg (envelope-from ); Mon, 05 Jun 2023 16:25:23 +0000 X-OVh-ClientIp: 81.67.140.142 Date: Mon, 5 Jun 2023 18:25:01 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 897060751681905378 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrfeelledguddtvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpedvheelieffheetvdelhfffffejfefgudfhteekveehieetudeiudfgkeeutdehjeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvpdefjedrheelrddugedvrddutddunecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeehheegjeegseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehhedtpdhmohguvgepshhmthhpohhuth 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via 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-Seal: i=1; s=key1; d=yhetil.org; t=1685982409; a=rsa-sha256; cv=none; b=n30dIsdVkMEJd1Mb6HcEe3flnPS9+jiEg94cKHcu5JMQr4bJqTxt6ZZ15QzF9/E24srjtx tGacUimdTU+99gbaZvT/DvlmjBpcEULkg9SoZZgzH+XVEQK0ae8M74ERrVzjkYbZeQ0b5k YU2WzryzlKR8YmjHOSsM4YDA12PN8ByzpV90CuU0hgrWLrCJXd/jhsmDS+LvQwXnrPlkOu DOjT7uflN+ccK/hZyXSz2F0cHaJfB/744D8I9cAEtyO3XED1+//Quikt4Hq+H2yH2nS6jV 3DnMfybyOE4Rihm+suBmJCulbmsIfQKolFRVcRmgj1ahJD2wYqsTtP7G0hoj2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685982409; h=from:from:sender:sender:reply-to: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; bh=iZobmR2kSFE9108+whleZqxT475aXbrsjU8Cl8QT9/Q=; b=mgK6i5bg8TylnOTeerOyr/2VLXMnFzLRGExKy+55CzgjsuuJc8cI0DfGNAEptS/PCv8qeN GROnPfUHIWDUqJjez7ZqCBvSSePZ14kNmGLfnkIenFFlsAAAfGqCM+N2Id30MqJ2zya4m5 VRcuRPW3hqpBcGzf4Pugcd6IPKlDkeNqNZNyVDK3mBkGsP39qYsU9txjYG9QkUrU7Vqwcq RBNpiZRosM09yuDHGj3EsRjH2iiqeicOh1sY1RzfrrJoTVFtLyBybgns6J/ERWnMv08c0M t98FwUFlxwK85e4G7FAt+Cf4ttPpe6l1i4eE9ElCo1lZDrnyMWLUrG8p4dKxLg== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.49 X-Spam-Score: -3.49 X-Migadu-Queue-Id: 22ED33123C X-TUID: 5IFi+5QQZJLg * gnu/packages/python-xyz.scm (python-jinjalint): New variable. --- gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 59ebc31de5..2a1c8ec161 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5206,6 +5206,45 @@ (define-public python-pysdl2 common SDL2 functionality.") (license license:cc0))) +(define-public python-jinjalint + (package + (name "python-jinjalint") + (version "0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "jinjalint" version)) + (sha256 + (base32 "09qqqi6iggr64zms9j9sgfq9v5samvsqyyqk0s1y4gfjy6lf9424")))) + (build-system pyproject-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + ;; Lift requirements. + (substitute* "requirements.txt" + (("parsy==1.1.0.*") "parsy\n") + (("attrs==17.2.*") "attrs\n") + (("docopt==0.6.2.*") "docopt\n")) + ;; Python 3.10 support. + (substitute* "jinjalint/util.py" + (("import collections") + "from collections.abc import Iterable") + (("collections\\.Iterable") + "Iterable")))) + (replace 'check + (lambda* (#:key tests? inputs #:allow-other-keys) + (if tests? + (invoke "python3" "-m" "jinjalint" "jinjalint/test.py") + (format #t "test suite not run~%"))))))) + (propagated-inputs (list python-attrs python-docopt python-parsy)) + (home-page "https://github.com/motet-a/jinjalint") + (synopsis "Linter for Jinja-like templates") + (description "This package provides @code{jinjalint} a linter for +Jinja-like templates in Python.") + (license license:expat))) + (define-public python-pystache (package (name "python-pystache") -- 2.40.1