[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/10: gnu: Add gitlint.
From: |
guix-commits |
Subject: |
07/10: gnu: Add gitlint. |
Date: |
Sun, 5 Jun 2022 17:41:15 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit ce1276073b713d30b39fd8bdf3307543b562c2ff
Author: Brian Kubisiak <brian@kubisiak.com>
AuthorDate: Wed Jun 1 18:56:46 2022 -0700
gnu: Add gitlint.
* gnu/packages/version-control.scm (gitlint): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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 a43382e94f..eefb4a01ec 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -3370,3 +3370,40 @@ with more capabilities. @command{git filter-repo} is
now recommended by the
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 Git commit messages")
+ (description
+ "Gitlint is a Git commit message linter written in Python: it checks your
+commit messages for style.")
+ (license license:expat)))
- branch master updated (2dae3cbecc -> ff8c7be8d1), guix-commits, 2022/06/05
- 01/10: gnu: commencement: Fetch bootstrap tarballs from ftp.gnu.org too., guix-commits, 2022/06/05
- 05/10: gnu: wpa-supplicant: Install DBus service file., guix-commits, 2022/06/05
- 10/10: gnu: emacs-elm-mode: Update to 0.22.0., guix-commits, 2022/06/05
- 06/10: gnu: python-sh: Update to 1.14.2., guix-commits, 2022/06/05
- 04/10: tests: childhurd: Make sure "guix build -d" works., guix-commits, 2022/06/05
- 03/10: tests: childhurd: Generalize command execution over SSH., guix-commits, 2022/06/05
- 09/10: services: guix-data-service: Increase timeout for service start., guix-commits, 2022/06/05
- 02/10: gnu: commencement: Remove unnecessary uses of 'bootstrap-origin'., guix-commits, 2022/06/05
- 07/10: gnu: Add gitlint.,
guix-commits <=
- 08/10: services: pam-limits: Add sudo and sshd., guix-commits, 2022/06/05