From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qOHuNsUamGLv8QAAbAwnHQ (envelope-from ) for ; Thu, 02 Jun 2022 04:04:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QAzONcUamGIXPQAAG6o9tA (envelope-from ) for ; Thu, 02 Jun 2022 04:04:53 +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 840ADA8CD for ; Thu, 2 Jun 2022 04:04:53 +0200 (CEST) Received: from localhost ([::1]:35492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwaCi-0008Ow-7i for larch@yhetil.org; Wed, 01 Jun 2022 22:04:52 -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-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=1654135493; 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=/FbkjG9Trf8RMrGlp65eJNDNKl6joCYcgIu9+zkpZVQ=; b=f6YU2Q5etYZWRhh5NutX8m+LxYelNkQveqczM/lck1Yz/iq61fqxnp4OkSxYw6Giy1VSPp hx6HuQEJaIwQ5pmJxmpFsFdQtRU8A0cCOAip8tr7OHoI45KJN4Cw6rgg6OjLbUrawn9GPE c4IBv2WLM6SCf5tbge3YB5iPx2lDbkx0cbu/GoAiKUbJxpKfh/Rc+nE2MfYIwvFyU4Am74 83RMQS376n0Mc6hshdwuUNd9aYeG9GcJg56pWs/aX1Owqx2k3HBlllIaD835BZ7p+Lc3CJ rM1fgsmlz7itZ7dlng6oRCJ77GMw0Ucnpf2mLLtaUEYiGpwiRr6ryEFtkQikxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654135493; a=rsa-sha256; cv=none; b=sIKewsPcPSubDPIDxJIIyD135YOvFg+nOKX+c+xzwDTWbRLXx5mYl11YGM+UHro4RDL+We 6g2v6qKkyxY7LKKkXtXifXBi8vKsCF/LQiVpl9UoUWf/B0cCld/5H7WioGUMpRSS8SFT9M nr8f8LBfaVwxqyZBWrZ82B1ELYxXD21QE/St3bTrd+gdgyApGGKHjGw2Rc3HGy/s1KIOb/ O58WuC26mZ+r2yueB7XU85dufxIeDdZ10wGXTdW/yl+fOf+jWHZir8N/A4YmVNUdrQYXiE lY8fYKpzStnt1EYmXfOEYihfNfp5hmumSWkLiEyu4rNYsTbqHdJ58zYUWc6amQ== 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: -3.33 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: 840ADA8CD X-Spam-Score: -3.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: gyj3j/R7W4Ul * 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))) -- 2.36.1