[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/09: gnu: Add python-pre-commit.
From: |
guix-commits |
Subject: |
07/09: gnu: Add python-pre-commit. |
Date: |
Tue, 2 Feb 2021 04:25:15 -0500 (EST) |
ngz pushed a commit to branch master
in repository guix.
commit c1377a323c0e77ed438c3f831aa726b3622e23b5
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue Feb 2 10:03:06 2021 +0100
gnu: Add python-pre-commit.
* gnu/packages/python-xyz.scm (python-pre-commit): New variable.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c9548cd..068c2d2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19913,6 +19913,37 @@ Features:
@end itemize")
(license license:asl2.0)))
+(define-public python-pre-commit
+ (package
+ (name "python-pre-commit")
+ (version "2.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pre_commit" version))
+ (sha256
+ (base32 "1ycf6wpxrhxhdzz0vpryhbdxlwik5khgcvp3hxwvfr447a6k84zl"))))
+ (build-system python-build-system)
+ (arguments
+ ;; Tests fail with "AttributeError: module 'pre_commit.resources' has no
+ ;; attribute 'empty_template_setup'".
+ `(#:tests? #false))
+ (propagated-inputs
+ `(("python-cfgv" ,python-cfgv)
+ ("python-identify" ,python-identify)
+ ("python-importlib-metadata" ,python-importlib-metadata)
+ ("python-importlib-resources" ,python-importlib-resources)
+ ("python-nodeenv" ,python-nodeenv)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-toml" ,python-toml)
+ ("python-virtualenv" ,python-virtualenv)))
+ (home-page "https://github.com/pre-commit/pre-commit")
+ (synopsis "Framework for managing multi-language pre-commit hooks")
+ (description
+ "This package provides a framework for managing and maintaining
+multi-language pre-commit hooks.")
+ (license license:expat)))
+
(define-public python-precis-i18n
(package
(name "python-precis-i18n")
- branch master updated (13b2c44 -> 625708b), guix-commits, 2021/02/02
- 04/09: gnu: Add python-yamllint., guix-commits, 2021/02/02
- 02/09: gnu: Add python-pymd4c., guix-commits, 2021/02/02
- 09/09: gnu: Add mdpo., guix-commits, 2021/02/02
- 07/09: gnu: Add python-pre-commit.,
guix-commits <=
- 05/09: gnu: Add python-flake8-implicit-str-concat., guix-commits, 2021/02/02
- 08/09: gnu: Add python-bump2version., guix-commits, 2021/02/02
- 01/09: gnu: Add md4c., guix-commits, 2021/02/02
- 03/09: gnu: Add python-sphinx-argparse., guix-commits, 2021/02/02
- 06/09: gnu: Add python-flake8-print., guix-commits, 2021/02/02