[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62100] [PATCH] gnu: Remove python-pre-commit.
From: |
Antero Mejr |
Subject: |
[bug#62100] [PATCH] gnu: Remove python-pre-commit. |
Date: |
Fri, 10 Mar 2023 17:17:27 +0000 |
* gnu/packages/python-xyz.scm (python-pre-commit): Delete variable.
* gnu/packages/version-control.scm (pre-commit): Add comment referencing
python-pre-commit.
---
Please apply this patch last, after the rest of the series.
Will cause ~70-80 rebuilds from what I can see.
pre-commit and python-pre-commit are duplicates, but pre-commit is better
packaged and newer. pre-commit should never be a native-input of python
packages: it's a package manager for commit linting, which is completely
irrelevant to builds.
Resolves 53502:
https://issues.guix.gnu.org/53502
gnu/packages/python-xyz.scm | 30 ------------------------------
gnu/packages/version-control.scm | 2 +-
2 files changed, 1 insertion(+), 31 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8243bb9fd3..b2fb60f322 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24284,36 +24284,6 @@ (define-public python-retrying
@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
- (list python-cfgv
- python-identify
- python-importlib-metadata
- python-nodeenv
- python-pyyaml
- python-toml
- 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")
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 8b0997768d..96378a73d3 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1667,7 +1667,7 @@ (define-public gitile
(define-public pre-commit
(package
- (name "pre-commit")
+ (name "pre-commit") ;formerly known as python-pre-commit
(version "2.20.0")
(source
(origin
--
2.38.1
- [bug#62100] [PATCH] gnu: Remove python-pre-commit.,
Antero Mejr <=
- [bug#62100] [PATCH 01/13] gnu: python-jupytext: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 02/13] gnu: python-bidict: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 04/13] gnu: python-marshmallow: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 05/13] gnu: python-marshmallow-jsonapi: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 03/13] gnu: python-pyjwt: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 06/13] gnu: python-apispec: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 07/13] gnu: python-apispec-webframeworks: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 08/13] gnu: python-minikanren: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 09/13] gnu: python-doubletdetection: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 13/13] gnu: python-sphinxcontrib-apidoc: Remove python-pre-commit., Antero Mejr, 2023/03/10