From unknown Sun Jun 22 08:02:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#46170] [PATCH] gnu: Add licenseheaders. Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Jan 2021 10:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46170 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46170@debbugs.gnu.org Cc: Tanguy Le Carrour X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16119150139734 (code B ref -1); Fri, 29 Jan 2021 10:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2021 10:10:13 +0000 Received: from localhost ([127.0.0.1]:51186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5QjF-0002Ww-FD for submit@debbugs.gnu.org; Fri, 29 Jan 2021 05:10:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:40158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5QjD-0002Wh-33 for submit@debbugs.gnu.org; Fri, 29 Jan 2021 05:10:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5QjC-0001xA-UV for guix-patches@gnu.org; Fri, 29 Jan 2021 05:10:10 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:56587) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5QjA-0001tk-8S for guix-patches@gnu.org; Fri, 29 Jan 2021 05:10:10 -0500 X-Originating-IP: 176.159.32.89 Received: from rafflesia.easter-eggs.fr (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPA id D66AEFF892; Fri, 29 Jan 2021 10:10:02 +0000 (UTC) From: Tanguy Le Carrour Date: Fri, 29 Jan 2021 11:09:48 +0100 Message-Id: <20210129100948.26041-1-tanguy@bioneland.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=217.70.183.199; envelope-from=tanguy@bioneland.org; helo=relay9-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * 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 ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2020, 2021 Michael Rohleder +;;; Copyright © 2021 Tanguy Le Carrour ;;; ;;; 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: + ;; . + (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 From unknown Sun Jun 22 08:02:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tanguy Le Carrour Subject: bug#46170: closed (Re: [bug#46170] [PATCH] gnu: Add licenseheaders.) Message-ID: References: <87h7mxdrjj.fsf@nicolasgoaziou.fr> <20210129100948.26041-1-tanguy@bioneland.org> X-Gnu-PR-Message: they-closed 46170 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 46170@debbugs.gnu.org Date: Sun, 31 Jan 2021 16:02:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1612108922-27839-1" This is a multi-part message in MIME format... ------------=_1612108922-27839-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #46170: [PATCH] gnu: Add licenseheaders. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 46170@debbugs.gnu.org. --=20 46170: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46170 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1612108922-27839-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 46170-done) by debbugs.gnu.org; 31 Jan 2021 16:01:33 +0000 Received: from localhost ([127.0.0.1]:57777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6FAK-0007EI-C4 for submit@debbugs.gnu.org; Sun, 31 Jan 2021 11:01:33 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:57883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6FAH-0007E2-7u for 46170-done@debbugs.gnu.org; Sun, 31 Jan 2021 11:01:31 -0500 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 09B55100005; Sun, 31 Jan 2021 16:01:21 +0000 (UTC) From: Nicolas Goaziou To: Tanguy Le Carrour Subject: Re: [bug#46170] [PATCH] gnu: Add licenseheaders. References: <20210129100948.26041-1-tanguy@bioneland.org> Date: Sun, 31 Jan 2021 17:01:20 +0100 In-Reply-To: <20210129100948.26041-1-tanguy@bioneland.org> (Tanguy Le Carrour's message of "Fri, 29 Jan 2021 11:09:48 +0100") Message-ID: <87h7mxdrjj.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46170-done Cc: 46170-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Tanguy Le Carrour 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 ------------=_1612108922-27839-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Jan 2021 10:10:13 +0000 Received: from localhost ([127.0.0.1]:51186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5QjF-0002Ww-FD for submit@debbugs.gnu.org; Fri, 29 Jan 2021 05:10:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:40158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5QjD-0002Wh-33 for submit@debbugs.gnu.org; Fri, 29 Jan 2021 05:10:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5QjC-0001xA-UV for guix-patches@gnu.org; Fri, 29 Jan 2021 05:10:10 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:56587) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5QjA-0001tk-8S for guix-patches@gnu.org; Fri, 29 Jan 2021 05:10:10 -0500 X-Originating-IP: 176.159.32.89 Received: from rafflesia.easter-eggs.fr (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPA id D66AEFF892; Fri, 29 Jan 2021 10:10:02 +0000 (UTC) From: Tanguy Le Carrour To: guix-patches@gnu.org Subject: [PATCH] gnu: Add licenseheaders. Date: Fri, 29 Jan 2021 11:09:48 +0100 Message-Id: <20210129100948.26041-1-tanguy@bioneland.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=217.70.183.199; envelope-from=tanguy@bioneland.org; helo=relay9-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Tanguy Le Carrour X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * 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 ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2020, 2021 Michael Rohleder +;;; Copyright © 2021 Tanguy Le Carrour ;;; ;;; 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: + ;; . + (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 ------------=_1612108922-27839-1-- From unknown Sun Jun 22 08:02:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#46170] [PATCH] gnu: Add licenseheaders. Resent-From: Tanguy LE CARROUR Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 31 Jan 2021 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46170 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou Cc: 46170-done@debbugs.gnu.org Received: via spool by 46170-done@debbugs.gnu.org id=D46170.161211033930195 (code D ref 46170); Sun, 31 Jan 2021 16:26:02 +0000 Received: (at 46170-done) by debbugs.gnu.org; 31 Jan 2021 16:25:39 +0000 Received: from localhost ([127.0.0.1]:57810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6FXf-0007qv-8D for submit@debbugs.gnu.org; Sun, 31 Jan 2021 11:25:39 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:14419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6FXd-0007qf-63 for 46170-done@debbugs.gnu.org; Sun, 31 Jan 2021 11:25:38 -0500 X-Originating-IP: 176.185.184.238 Received: from localhost (static-176-185-184-238.axione.abo.bbox.fr [176.185.184.238]) (Authenticated sender: tanguy@bioneland.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 27ADC240004; Sun, 31 Jan 2021 16:25:29 +0000 (UTC) Date: Sun, 31 Jan 2021 17:25:27 +0100 From: Tanguy LE CARROUR References: <20210129100948.26041-1-tanguy@bioneland.org> <87h7mxdrjj.fsf@nicolasgoaziou.fr> In-Reply-To: <87h7mxdrjj.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1612110225.r0d8fxe8cd.astroid@melmoth.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Nicolas, Excerpts from Nicolas Goaziou's message of January 31, 2021 5:01 pm: > Tanguy Le Carrour writes: >=20 >> * gnu/packages/license.scm (licenseheaders): New variable. >=20 > Applied. Thank you. Thanks. >> + "A Python 3 tool to update, change or add license headers to all f= iles >> + of any of the supported types (see below) in or below some >> directory.") >=20 > I turned the description into a complete sentence. Sorry! Thanks for noticing! --=20 Tanguy