gnu: pre-commit: Update to 2.13.0.
* gnu/packages/version-control.scm (pre-commit): Update to 2.13.0. [arguments]<#:phases>: Don't return #t. [synopsis]: Slightly shorten it. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
30f0b6fa4d
commit
a2bcf64383
1 changed files with 5 additions and 7 deletions
|
@ -1520,7 +1520,7 @@ control to Git repositories.")
|
||||||
(define-public pre-commit
|
(define-public pre-commit
|
||||||
(package
|
(package
|
||||||
(name "pre-commit")
|
(name "pre-commit")
|
||||||
(version "2.12.1")
|
(version "2.13.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
;; No tests in the PyPI tarball.
|
;; No tests in the PyPI tarball.
|
||||||
|
@ -1530,7 +1530,7 @@ control to Git repositories.")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0gwy5bnjnlj6yjcmghsibrcijvz9isxcygln7ihvi728p04rgymf"))))
|
(base32 "02lr8d6fkr32j4rpp2ac84a5gjwq16k1hb74j6js0kxg83qw6raf"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
|
@ -1550,8 +1550,7 @@ control to Git repositories.")
|
||||||
;; Some tests will need a working git repository.
|
;; Some tests will need a working git repository.
|
||||||
(invoke "git" "init")
|
(invoke "git" "init")
|
||||||
(invoke "git" "config" "--global" "user.name" "Your Name")
|
(invoke "git" "config" "--global" "user.name" "Your Name")
|
||||||
(invoke "git" "config" "--global" "user.email" "you@example.com")
|
(invoke "git" "config" "--global" "user.email" "you@example.com")))
|
||||||
#t))
|
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(add-installed-pythonpath inputs outputs)
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
@ -1579,8 +1578,7 @@ control to Git repositories.")
|
||||||
;; 'reset-gzip-timestamps' phase can do its work.
|
;; 'reset-gzip-timestamps' phase can do its work.
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(for-each make-file-writable
|
(for-each make-file-writable
|
||||||
(find-files out "\\.gz$"))
|
(find-files out "\\.gz$"))))))))
|
||||||
#t))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("git" ,git-minimal)
|
`(("git" ,git-minimal)
|
||||||
("python-covdefaults" ,python-covdefaults)
|
("python-covdefaults" ,python-covdefaults)
|
||||||
|
@ -1599,7 +1597,7 @@ control to Git repositories.")
|
||||||
("python-toml" ,python-toml)
|
("python-toml" ,python-toml)
|
||||||
("python-virtualenv" ,python-virtualenv)))
|
("python-virtualenv" ,python-virtualenv)))
|
||||||
(home-page "https://pre-commit.com/")
|
(home-page "https://pre-commit.com/")
|
||||||
(synopsis "Framework for managing and maintaining multi-language pre-commit hooks")
|
(synopsis "Framework for managing and maintaining pre-commit hooks")
|
||||||
(description
|
(description
|
||||||
"Pre-commit is a multi-language package manager for pre-commit hooks. You
|
"Pre-commit is a multi-language package manager for pre-commit hooks. You
|
||||||
specify a list of hooks you want and pre-commit manages the installation and
|
specify a list of hooks you want and pre-commit manages the installation and
|
||||||
|
|
Reference in a new issue