From patchwork Thu Jun 2 01:56:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Kubisiak X-Patchwork-Id: 39715 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 2CF4327BBEA; Thu, 2 Jun 2022 03:04:58 +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 DA03027BBE9 for ; Thu, 2 Jun 2022 03:04:57 +0100 (BST) Received: from localhost ([::1]:35492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwaCn-0008Ow-1S for patchwork@mira.cbaines.net; Wed, 01 Jun 2022 22:04:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwa59-0004B8-4Q for guix-patches@gnu.org; Wed, 01 Jun 2022 21:57:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58363) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwa58-0007Ae-Qu for guix-patches@gnu.org; Wed, 01 Jun 2022 21:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nwa58-0001tJ-Ql for guix-patches@gnu.org; Wed, 01 Jun 2022 21:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55693] [PATCH v3 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: Thu, 02 Jun 2022 01:57:02 +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.16541350167249 (code B ref 55693); Thu, 02 Jun 2022 01:57:02 +0000 Received: (at 55693) by debbugs.gnu.org; 2 Jun 2022 01:56:56 +0000 Received: from localhost ([127.0.0.1]:52259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwa52-0001sr-8q for submit@debbugs.gnu.org; Wed, 01 Jun 2022 21:56:56 -0400 Received: from mn-69-69-108-139.sta.embarqhsd.net ([69.69.108.139]:1880 helo=mail.kubisiak.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwa50-0001sQ-Sk for 55693@debbugs.gnu.org; Wed, 01 Jun 2022 21:56:55 -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) ; Wed, 1 Jun 2022 20:56:41 -0500 Date: Wed, 1 Jun 2022 18:56:46 -0700 From: Brian Kubisiak Message-ID: <20220602015646.gasbapfxxyrfa7yd@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 | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 9d0786d2d9..e8a356df62 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -3371,3 +3371,40 @@ (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 + (list + #: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"))))))) + (inputs + (list git python-arrow python-click 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)))