GNU bug report logs - #37532
Add ‘reuse’ licence helper and its dependents

Previous Next

Package: guix-patches;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Fri, 27 Sep 2019 13:19:01 UTC

Severity: normal

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37532 in the body.
You can then email your comments to 37532 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#37532; Package guix-patches. (Fri, 27 Sep 2019 13:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 27 Sep 2019 13:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Tobias Geerinckx-Rice via Guix-patches via <guix-patches <at> gnu.org>
Subject: Add ‘reuse’ licence helper and its dependents
Date: Fri, 27 Sep 2019 12:31:37 +0200
[Message part 1 (text/plain, inline)]
Max Mehl 写道:
> As you know, the REUSE project aims to make Free Software 
> licensing
> easier and clearer, especially for developers. Our tool 
> automates a lot
> of processes around that:
>
>   https://git.fsfe.org/reuse/tool
>
> To make it easier, people can install it via pip, but we are not 
> present
> in multiple popular distributions' package repositories. Right 
> now, it's
> Arch Linux (through AUR), Fedora, and OpenSUSE (in an old 
> version).
>
> Is someone here who could help us get REUSE tool packaged for 
> e.g.
> Debian, Ubuntu, NixOS etc? I'm looking forward to collaborate on 
> that :)

Let's jump so quickly, and so high, that they include GNU Guix in 
that list next time.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#37532; Package guix-patches. (Fri, 27 Sep 2019 13:27:01 GMT) Full text and rfc822 format available.

Message #8 received at 37532 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 37532 <at> debbugs.gnu.org
Subject: [PATCH 1/3] gnu: Add python-boolean.py.
Date: Fri, 27 Sep 2019 15:26:15 +0200
* gnu/packages/python-xyz.scm (python-boolean.py): New public variable.
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5fa42c5012..cb8ebf8aa3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -387,6 +387,32 @@ certificate returned by the server to which a connection has been established,
 and verifies that it matches the intended target hostname.")
     (license license:psfl)))
 
+(define-public python-boolean.py
+  (package
+    (name "python-boolean.py")
+    (version "3.6")
+    (source
+     (origin
+       ;; There's no source tarball on PyPI.
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/bastikr/boolean.py")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1wc89y73va58cj7dsx6c199zpxsy9q53dsffsdj6zmc90inqz6qs"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/bastikr/boolean.py")
+    (synopsis "Boolean algebra in one Python module")
+    (description
+     "This is a small Python library that implements boolean algebra.
+It defines two base elements, @code{TRUE} and @code{FALSE}, and a
+@code{Symbol} class that can take on one of these two values.  Calculations
+are done only in terms of @code{AND}, @code{OR}, and @code{NOT}---other
+compositions like @code{XOR} and @code{NAND} are emulated on top of them.
+Expressions are constructed from parsed strings or directly in Python.")
+    (license license:bsd-2)))
+
 (define-public python-hdf4
   (package
    (name "python-hdf4")
-- 
2.23.0





Information forwarded to guix-patches <at> gnu.org:
bug#37532; Package guix-patches. (Fri, 27 Sep 2019 13:27:02 GMT) Full text and rfc822 format available.

Message #11 received at 37532 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 37532 <at> debbugs.gnu.org
Subject: [PATCH 2/3] gnu: Add python-license-expression.
Date: Fri, 27 Sep 2019 15:26:16 +0200
* gnu/packages/python-xyz.scm (python-license-expression): New public
variable.
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cb8ebf8aa3..883b333c03 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -609,6 +609,29 @@ to users of that module.")
 (define-public python2-netcdf4
   (package-with-python2 python-netcdf4))
 
+(define-public python-license-expression
+  (package
+    (name "python-license-expression")
+    (version "0.999")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "license-expression" version))
+       (sha256
+        (base32 "08ppb0bxbrsxazy88sgpl9yffvdsabw6dkk1nc332wcz2mphwwyf"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-boolean.py" ,python-boolean.py)))
+    (home-page "https://github.com/nexB/license-expression")
+    (synopsis "Apply boolean logic to license expressions")
+    (description
+     "This Python module defines a tiny language to evaluate and compare
+license expressions using boolean logic.  Logical combinations of licenses can
+be tested for equality, containment, and equivalence.  They can be normalised
+and simplified.  It supports SPDX license expressions as well as other naming
+conventions and aliases in the same expression.")
+    (license license:gpl2+)))
+
 (define-public python-lockfile
   (package
     (name "python-lockfile")
-- 
2.23.0





Information forwarded to guix-patches <at> gnu.org:
bug#37532; Package guix-patches. (Fri, 27 Sep 2019 13:27:02 GMT) Full text and rfc822 format available.

Message #14 received at 37532 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 37532 <at> debbugs.gnu.org
Subject: [PATCH 3/3] gnu: Add reuse.
Date: Fri, 27 Sep 2019 15:26:17 +0200
* gnu/packages/license.scm (reuse): New public variable.
---
 gnu/packages/license.scm | 49 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/license.scm b/gnu/packages/license.scm
index 82dbd2dba1..73b0dff3f5 100644
--- a/gnu/packages/license.scm
+++ b/gnu/packages/license.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust <at> gmail.com>
-;;; Copyright © 2018 Tobias Geerinckx-Rice <me <at> tobias.gr>
+;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me <at> tobias.gr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -19,10 +19,15 @@
 
 (define-module (gnu packages license)
   #:use-module (gnu packages)
+  #:use-module (gnu packages check)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages perl-check)
+  #:use-module (gnu packages python-web)
+  #:use-module (gnu packages python-xyz)
   #:use-module (guix build-system perl)
+  #:use-module (guix build-system python)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix licenses)
   #:use-module (guix packages))
 
@@ -160,3 +165,45 @@ statements and serializes in normalized format.")
 to each file passed to it, by searching the start of the file for text
 belonging to various licenses.")
     (license (package-license perl))))
+
+(define-public reuse
+  (package
+    (name "reuse")
+    (version "0.5.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.fsfe.org/reuse/tool.git")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1w17g6jvs715rjc93nnnqnfdphijq4ymj9jjkr3ccc286ywvn3ih"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (inputs
+     `(("python-binaryornot" ,python-binaryornot)
+       ("python-boolean.py" ,python-boolean.py)
+       ("python-debian" ,python-debian)
+       ("python-jinja2" ,python-jinja2)
+       ("python-license-expression" ,python-license-expression)
+       ("python-requests" ,python-requests)))
+    (home-page "https://reuse.software/")
+    (synopsis "Provide and verify copyright and licensing information")
+    (description
+     "The REUSE tool helps you achieve and confirm license compliance with the
+@uref{https://reuse.software, REUSE specification}, a set of recommendations
+for licensing Free Software projects.  REUSE makes it easy to declare the
+licenses under which your works are released, especially when reusing software
+from different projects released under different licenses.  It avoids reliance
+on fuzzy heuristicts and allows both legal experts and computers to understand
+how your project is licensed.  This allows generating a \"bill of materials\"
+for software.
+
+This tool downloads full license texts, adds copyright and license information
+to file headers, and contains a linter to identify problems.  There are other
+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+))))
-- 
2.23.0





Information forwarded to guix-patches <at> gnu.org:
bug#37532; Package guix-patches. (Tue, 01 Oct 2019 08:59:02 GMT) Full text and rfc822 format available.

Message #17 received at 37532 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 37532 <at> debbugs.gnu.org
Subject: Re: [bug#37532] Add ‘reuse’ licence helper and
 its dependents
Date: Tue, 01 Oct 2019 10:58:31 +0200
Hi!

Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:

> Max Mehl 写道:
>> As you know, the REUSE project aims to make Free Software licensing
>> easier and clearer, especially for developers. Our tool automates a
>> lot
>> of processes around that:
>>
>>   https://git.fsfe.org/reuse/tool
>>
>> To make it easier, people can install it via pip, but we are not
>> present
>> in multiple popular distributions' package repositories. Right now,
>> it's
>> Arch Linux (through AUR), Fedora, and OpenSUSE (in an old version).
>>
>> Is someone here who could help us get REUSE tool packaged for e.g.
>> Debian, Ubuntu, NixOS etc? I'm looking forward to collaborate on
>> that :)
>
> Let's jump so quickly, and so high, that they include GNU Guix in that
> list next time.

Heheh.  :-)

The patches LGTM, thanks!

Ludo’.




Reply sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
You have taken responsibility. (Tue, 01 Oct 2019 20:44:02 GMT) Full text and rfc822 format available.

Notification sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
bug acknowledged by developer. (Tue, 01 Oct 2019 20:44:03 GMT) Full text and rfc822 format available.

Message #22 received at 37532-done <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 37532-done <at> debbugs.gnu.org
Subject: Re: [bug#37532] Add ‘reuse’ licence helper and
 its dependents
Date: Tue, 01 Oct 2019 22:43:02 +0200
[Message part 1 (text/plain, inline)]
Ludovic Courtès 写道:
> The patches LGTM, thanks!

Thank you!  Pushed as 7c552913c1616b182aa885cf867e49eb0f7594f9.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#37532; Package guix-patches. (Wed, 02 Oct 2019 15:22:02 GMT) Full text and rfc822 format available.

Message #25 received at 37532 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 37532 <at> debbugs.gnu.org
Subject: Re: [bug#37532] Add ‘reuse’ licence helper and
 its dependents
Date: Wed, 02 Oct 2019 17:21:14 +0200
[Message part 1 (text/plain, inline)]
Tobias Geerinckx-Rice 写道:
> Pushed as 7c552913c1616b182aa885cf867e49eb0f7594f9.

Spammed as 
https://lists.fsfe.org/pipermail/discussion/2019-October/012915.html.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 31 Oct 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 178 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.