From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sNgqM/pQlWK2MQEAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 01:19:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wKwpMvpQlWK7RgEAG6o9tA (envelope-from ) for ; Tue, 31 May 2022 01:19:22 +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 5A27A38AD9 for ; Tue, 31 May 2022 01:19:21 +0200 (CEST) Received: from localhost ([::1]:55538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvofR-0001pV-3K for larch@yhetil.org; Mon, 30 May 2022 19:19:21 -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-Type: text/plain; charset=us-ascii 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653952762; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=U4EduJHDeUvzgzwPOXSN/mERXmfF0NIut2ORu/rhEbc=; b=e2P7VvlSvU2dtsPfOR5u2qX2Al8rgv5Zirv+b0Y+ZKqiLAF+dBhpPItCKmNeG7H8zOB/jj eg+8MBxHPmIEPGYC1W499PPeHn+8pyVz2ktpcFRb6i3Jln3iXD9bFvFKDR+nVdERJRLljT 9k85UjtB+wMEYB16mjTpGimFq0OWXVh4vLQ8nO6WSxsM+4sQocgqUPisS3lLQD/BgedfRg C0Nc7s5y2xZup9FoQvRBY0ap6X/ZLcQKWkIE7zDmJ2MKzzlnZrU1bA4L7s2ZTUWT8lwyVK 83RGPf6LlWXjeAW0hMw4Sp8aIbPXDRjwFePYYz/O8q92elRYTEtOpo6o0DNuDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653952762; a=rsa-sha256; cv=none; b=soucbo1lEuA/Hn7E2wmlY2dn4sr5dYqX3DEGNPJ3z5w/MbXFr0jIssY46F3vmRrnvGUiB3 8ZV14pSrSDTRHpOmdhD+BB0reMX3u0WzgiCLEF431tW/MxYVw3bRNDW+VLM1iVCS0KTAjU aWNXSR2djBsbhsjg/7kXtbLN6EAg7hHdmyiKoUmceynj8aVoYcJbiXQ7pwslCoOxnvHrP9 Ea71wl8WQejs5tG7HwzlF6MsmaTYV4MF9iWmDTY6zHx6oqvIK1ZpUy1EkbK6Em5sNkuYYN oi6ujoYQztglyFaxVKxkCl0p+qDkLxpH6aE9y8qJ17dYB49JFhSHmD8x8ouc4w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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-Spam-Score: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Queue-Id: 5A27A38AD9 X-Spam-Score: -4.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: VF56OUETlavp * 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))) -- 2.36.1