From patchwork Mon May 30 23:17:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Kubisiak X-Patchwork-Id: 39690 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 8685227BBEA; Tue, 31 May 2022 00:19:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,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 510EB27BBE9 for ; Tue, 31 May 2022 00:19:21 +0100 (BST) Received: from localhost ([::1]:55538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvofQ-0001pV-I9 for patchwork@mira.cbaines.net; Mon, 30 May 2022 19:19:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvof8-0001pM-Dv for guix-patches@gnu.org; Mon, 30 May 2022 19:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvof8-0005e2-54 for guix-patches@gnu.org; Mon, 30 May 2022 19:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nvof7-0000s4-VV for guix-patches@gnu.org; Mon, 30 May 2022 19:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55693] [PATCH v2 2/2] gnu: Add gitlint. References: <20220528235330.hz2p6hsw5qcysaqc@peregrine> In-Reply-To: <20220528235330.hz2p6hsw5qcysaqc@peregrine> Resent-From: Brian Kubisiak Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 May 2022 23:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55693 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55693@debbugs.gnu.org Received: via spool by 55693-submit@debbugs.gnu.org id=B55693.16539526873223 (code B ref 55693); Mon, 30 May 2022 23:19:01 +0000 Received: (at 55693) by debbugs.gnu.org; 30 May 2022 23:18:07 +0000 Received: from localhost ([127.0.0.1]:46226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvoeF-0000pu-I4 for submit@debbugs.gnu.org; Mon, 30 May 2022 19:18:07 -0400 Received: from mn-69-69-108-139.sta.embarqhsd.net ([69.69.108.139]:3002 helo=mail.kubisiak.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvoeB-0000pB-3x for 55693@debbugs.gnu.org; Mon, 30 May 2022 19:18:06 -0400 Received: from peregrine (108-237-41-25.lightspeed.sntcca.sbcglobal.net [108.237.41.25]) by mail.kubisiak.com with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Mon, 30 May 2022 18:17:53 -0500 Date: Mon, 30 May 2022 16:17:55 -0700 From: Brian Kubisiak Message-ID: <20220530231755.5triztiq6knsmeob@peregrine> MIME-Version: 1.0 Content-Disposition: inline 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/version-control.scm (gitlint): New variable. --- gnu/packages/version-control.scm | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 9d0786d2d9..abc93ecd8e 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -3371,3 +3371,42 @@ (define-public git-filter-repo Git project instead of @command{git filter-branch}.") (license (list license:expat ;; Main license. license:gpl2)))) ;; For test harness. + +(define-public gitlint + (package + (name "gitlint") + (version "0.17.0") + (source (origin + (method url-fetch) + ;; the gitlint-core pypi package contains the actual gitlint + ;; code; the gitlint package only pulls in gitlint-core with + ;; stricter dependency versioning + (uri (pypi-uri "gitlint-core" version)) + (sha256 + (base32 + "14cn89biys8r7mwcdgllv371k34km9k1941ylxf53a7sxwrzsbbp")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'loosen-requirements + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "gitlint/shell.py" + (("'git'") (string-append "'" + (search-input-file inputs "bin/git") + "'")) + ;; force using subprocess instead of sh so git does not need to + ;; be a propagated input + (("if USE_SH_LIB") "if False")) + #t))))) + (inputs + `(("git" ,git) + ("python-arrow" ,python-arrow) + ("python-click" ,python-click) + ("python-sh" ,python-sh))) + (home-page "https://jorisroovers.com/gitlint/") + (synopsis "Linting for your git commit messages") + (description + "Gitlint is a git commit message linter written in python: it checks your +commit messages for style.") + (license license:expat)))