* [bug#46170] [PATCH] gnu: Add licenseheaders.
@ 2021-01-29 10:09 Tanguy Le Carrour
2021-01-31 16:01 ` bug#46170: " Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Tanguy Le Carrour @ 2021-01-29 10:09 UTC (permalink / raw)
To: 46170; +Cc: Tanguy Le Carrour
* gnu/packages/license.scm (licenseheaders): New variable.
---
gnu/packages/license.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/license.scm b/gnu/packages/license.scm
index 369426768b..568275e510 100644
--- a/gnu/packages/license.scm
+++ b/gnu/packages/license.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
+;;; Copyright © 2021 Tanguy Le Carrour <tanguy@bioneland.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -205,3 +206,37 @@ tools that have a lot more features and functionality surrounding the analysis
and inspection of copyright and licenses in software projects. This one is
designed to be simple.")
(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
+ "A Python 3 tool to update, change or add license headers to all files
+ of any of the supported types (see below) in or below some directory.")
+ (license expat)))
--
2.30.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#46170: [PATCH] gnu: Add licenseheaders.
2021-01-29 10:09 [bug#46170] [PATCH] gnu: Add licenseheaders Tanguy Le Carrour
@ 2021-01-31 16:01 ` Nicolas Goaziou
2021-01-31 16:25 ` [bug#46170] " Tanguy LE CARROUR
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2021-01-31 16:01 UTC (permalink / raw)
To: Tanguy Le Carrour; +Cc: 46170-done
Hello,
Tanguy Le Carrour <tanguy@bioneland.org> writes:
> * gnu/packages/license.scm (licenseheaders): New variable.
Applied. Thank you.
> + "A Python 3 tool to update, change or add license headers to all files
> + of any of the supported types (see below) in or below some
> directory.")
I turned the description into a complete sentence.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#46170] [PATCH] gnu: Add licenseheaders.
2021-01-31 16:01 ` bug#46170: " Nicolas Goaziou
@ 2021-01-31 16:25 ` Tanguy LE CARROUR
0 siblings, 0 replies; 3+ messages in thread
From: Tanguy LE CARROUR @ 2021-01-31 16:25 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: 46170-done
Hi Nicolas,
Excerpts from Nicolas Goaziou's message of January 31, 2021 5:01 pm:
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
>
>> * gnu/packages/license.scm (licenseheaders): New variable.
>
> Applied. Thank you.
Thanks.
>> + "A Python 3 tool to update, change or add license headers to all files
>> + of any of the supported types (see below) in or below some
>> directory.")
>
> I turned the description into a complete sentence.
Sorry! Thanks for noticing!
--
Tanguy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-31 16:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-29 10:09 [bug#46170] [PATCH] gnu: Add licenseheaders Tanguy Le Carrour
2021-01-31 16:01 ` bug#46170: " Nicolas Goaziou
2021-01-31 16:25 ` [bug#46170] " Tanguy LE CARROUR
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.