unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37532] Add ‘reuse’ licence helper and its dependents
@ 2019-09-27 10:31 Tobias Geerinckx-Rice via Guix-patches via
  2019-09-27 13:26 ` [bug#37532] [PATCH 1/3] gnu: Add python-boolean.py Tobias Geerinckx-Rice via Guix-patches via
  2019-10-01  8:58 ` [bug#37532] Add ‘reuse’ licence helper and its dependents Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2019-09-27 10:31 UTC (permalink / raw)
  To: 37532

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#37532] [PATCH 1/3] gnu: Add python-boolean.py.
  2019-09-27 10:31 [bug#37532] Add ‘reuse’ licence helper and its dependents Tobias Geerinckx-Rice via Guix-patches via
@ 2019-09-27 13:26 ` Tobias Geerinckx-Rice via Guix-patches via
  2019-09-27 13:26   ` [bug#37532] [PATCH 2/3] gnu: Add python-license-expression Tobias Geerinckx-Rice via Guix-patches via
  2019-09-27 13:26   ` [bug#37532] [PATCH 3/3] gnu: Add reuse Tobias Geerinckx-Rice via Guix-patches via
  2019-10-01  8:58 ` [bug#37532] Add ‘reuse’ licence helper and its dependents Ludovic Courtès
  1 sibling, 2 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2019-09-27 13:26 UTC (permalink / raw)
  To: 37532

* 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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#37532] [PATCH 2/3] gnu: Add python-license-expression.
  2019-09-27 13:26 ` [bug#37532] [PATCH 1/3] gnu: Add python-boolean.py Tobias Geerinckx-Rice via Guix-patches via
@ 2019-09-27 13:26   ` Tobias Geerinckx-Rice via Guix-patches via
  2019-09-27 13:26   ` [bug#37532] [PATCH 3/3] gnu: Add reuse Tobias Geerinckx-Rice via Guix-patches via
  1 sibling, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2019-09-27 13:26 UTC (permalink / raw)
  To: 37532

* 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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#37532] [PATCH 3/3] gnu: Add reuse.
  2019-09-27 13:26 ` [bug#37532] [PATCH 1/3] gnu: Add python-boolean.py Tobias Geerinckx-Rice via Guix-patches via
  2019-09-27 13:26   ` [bug#37532] [PATCH 2/3] gnu: Add python-license-expression Tobias Geerinckx-Rice via Guix-patches via
@ 2019-09-27 13:26   ` Tobias Geerinckx-Rice via Guix-patches via
  1 sibling, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2019-09-27 13:26 UTC (permalink / raw)
  To: 37532

* 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@gmail.com>
-;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#37532] Add ‘reuse’ licence helper and its dependents
  2019-09-27 10:31 [bug#37532] Add ‘reuse’ licence helper and its dependents Tobias Geerinckx-Rice via Guix-patches via
  2019-09-27 13:26 ` [bug#37532] [PATCH 1/3] gnu: Add python-boolean.py Tobias Geerinckx-Rice via Guix-patches via
@ 2019-10-01  8:58 ` Ludovic Courtès
  2019-10-01 20:43   ` bug#37532: " Tobias Geerinckx-Rice via Guix-patches via
  1 sibling, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2019-10-01  8:58 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 37532

Hi!

Tobias Geerinckx-Rice <me@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’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#37532: Add ‘reuse’ licence helper and its dependents
  2019-10-01  8:58 ` [bug#37532] Add ‘reuse’ licence helper and its dependents Ludovic Courtès
@ 2019-10-01 20:43   ` Tobias Geerinckx-Rice via Guix-patches via
  2019-10-02 15:21     ` [bug#37532] " Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2019-10-01 20:43 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37532-done

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

Ludovic Courtès 写道:
> The patches LGTM, thanks!

Thank you!  Pushed as 7c552913c1616b182aa885cf867e49eb0f7594f9.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#37532] Add ‘reuse’ licence helper and its dependents
  2019-10-01 20:43   ` bug#37532: " Tobias Geerinckx-Rice via Guix-patches via
@ 2019-10-02 15:21     ` Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2019-10-02 15:21 UTC (permalink / raw)
  To: 37532

[-- Attachment #1: Type: text/plain, Size: 200 bytes --]

Tobias Geerinckx-Rice 写道:
> Pushed as 7c552913c1616b182aa885cf867e49eb0f7594f9.

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

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-02 15:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-27 10:31 [bug#37532] Add ‘reuse’ licence helper and its dependents Tobias Geerinckx-Rice via Guix-patches via
2019-09-27 13:26 ` [bug#37532] [PATCH 1/3] gnu: Add python-boolean.py Tobias Geerinckx-Rice via Guix-patches via
2019-09-27 13:26   ` [bug#37532] [PATCH 2/3] gnu: Add python-license-expression Tobias Geerinckx-Rice via Guix-patches via
2019-09-27 13:26   ` [bug#37532] [PATCH 3/3] gnu: Add reuse Tobias Geerinckx-Rice via Guix-patches via
2019-10-01  8:58 ` [bug#37532] Add ‘reuse’ licence helper and its dependents Ludovic Courtès
2019-10-01 20:43   ` bug#37532: " Tobias Geerinckx-Rice via Guix-patches via
2019-10-02 15:21     ` [bug#37532] " Tobias Geerinckx-Rice via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).