mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
gnu: Add licenseheaders.
* gnu/packages/license.scm (licenseheaders): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
d6f79bc64d
commit
232a10f006
1 changed files with 33 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
|
;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
|
||||||
;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
|
;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
|
||||||
|
;;; Copyright © 2021 Tanguy Le Carrour <tanguy@bioneland.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -205,3 +206,35 @@ (define-public reuse
|
||||||
and inspection of copyright and licenses in software projects. This one is
|
and inspection of copyright and licenses in software projects. This one is
|
||||||
designed to be simple.")
|
designed to be simple.")
|
||||||
(license (list asl2.0 gpl3+))))
|
(license (list asl2.0 gpl3+))))
|
||||||
|
|
||||||
|
(define-public licenseheaders
|
||||||
|
(package
|
||||||
|
(name "licenseheaders")
|
||||||
|
(version "0.8.6")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (pypi-uri "licenseheaders" version))
|
||||||
|
(sha256
|
||||||
|
(base32 "073xcm10gyg5kcxqmbsyaz9sr0slbdwgr0r9qanch0zl8i0z9259"))))
|
||||||
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
;; Reported upstream:
|
||||||
|
;; <https://github.com/johann-petrak/licenseheaders/issues/47>.
|
||||||
|
(add-after 'unpack 'patch-code
|
||||||
|
(lambda _
|
||||||
|
(substitute* "licenseheaders.py"
|
||||||
|
(("\\\"filenames\\\": \\[\\\"CMakeLists.txt\\\"\\],")
|
||||||
|
"\"filenames\": [\"CMakeLists.txt\"], \n \"extensions\": [],"))
|
||||||
|
#t)))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-regex" ,python-regex)))
|
||||||
|
(home-page "http://github.com/johann-petrak/licenseheaders")
|
||||||
|
(synopsis "Add or change license headers for all files in a directory")
|
||||||
|
(description
|
||||||
|
"Licenseheaders is a Python 3 tool to update, change or add license
|
||||||
|
headers to all files of any of the supported types in or below some
|
||||||
|
directory.")
|
||||||
|
(license expat)))
|
||||||
|
|
Loading…
Reference in a new issue