From patchwork Fri Sep 27 13:26:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 15492 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5E23517446; Fri, 27 Sep 2019 15:12:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 14DD917444 for ; Fri, 27 Sep 2019 15:12:21 +0100 (BST) Received: from localhost ([::1]:51386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDqyq-0002jf-0P for patchwork@mira.cbaines.net; Fri, 27 Sep 2019 10:12:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35610) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDqH2-0000JH-GH for guix-patches@gnu.org; Fri, 27 Sep 2019 09:27:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDqH0-00019R-W7 for guix-patches@gnu.org; Fri, 27 Sep 2019 09:27:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDqH0-00019G-SU for guix-patches@gnu.org; Fri, 27 Sep 2019 09:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iDqH0-0004om-Mx for guix-patches@gnu.org; Fri, 27 Sep 2019 09:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37532] [PATCH 3/3] gnu: Add reuse. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 27 Sep 2019 13:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37532 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 37532@debbugs.gnu.org Received: via spool by 37532-submit@debbugs.gnu.org id=B37532.156959080918487 (code B ref 37532); Fri, 27 Sep 2019 13:27:02 +0000 Received: (at 37532) by debbugs.gnu.org; 27 Sep 2019 13:26:49 +0000 Received: from localhost ([127.0.0.1]:46038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDqGm-0004o6-By for submit@debbugs.gnu.org; Fri, 27 Sep 2019 09:26:48 -0400 Received: from tobias.gr ([80.241.217.52]:52752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDqGh-0004nO-Fm for 37532@debbugs.gnu.org; Fri, 27 Sep 2019 09:26:44 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 28116adc for <37532@debbugs.gnu.org>; Fri, 27 Sep 2019 13:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=2018; i=me@tobias.gr; bh=F9U6ulBUBpKeu9LwMo9l4Hihuh+bijbU3qtThiPqrrQ=; b=j3oyjgCPSSRz tds5drjb/9pMKhjNzbP8Utg8m4q3Nukud7jjjQNsxhO0FTigyMByheSbRoE4SHxn 4qm3UGn8pPYlut1iemG5I8nQCWlkAY1k8NXz6ICipdILhcJSPDuaxwlmH0XmhF/v 1ibSO2/RvnaYOK1tjU8GN5jbyQl7Gjar6VkCWfz7we1IB1wiT0c5fRM1tiXlh0sE tb5x9Q4eotpPFTbUY8lJf5XJqAz3qADb8IfdhBz3VDNkHwFh0KbnfWmxEFT9g6ew bUJXv3/vp8lo8OhE7i0A/h70u+TI09J3CrkYJnzIhiGTa/qpJqC2Xa4tztwphXcq HdNc5D6fww== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id e35c6f51 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <37532@debbugs.gnu.org>; Fri, 27 Sep 2019 13:26:39 +0000 (UTC) Date: Fri, 27 Sep 2019 15:26:17 +0200 Message-Id: <20190927132617.3369-3-me@tobias.gr> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190927132617.3369-1-me@tobias.gr> References: <20190927132617.3369-1-me@tobias.gr> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Tobias Geerinckx-Rice via Guix-patches X-Patchwork-Original-From: Tobias Geerinckx-Rice via Guix-patches via From: "ashish.is--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches * 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 -;;; Copyright © 2018 Tobias Geerinckx-Rice +;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice ;;; ;;; 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+))))