From patchwork Sun Apr 12 15:00:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matthew James Kraai X-Patchwork-Id: 21205 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 4C23C27BBE4; Sun, 12 Apr 2020 16:01:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 0592E27BBE1 for ; Sun, 12 Apr 2020 16:01:10 +0100 (BST) Received: from localhost ([::1]:34178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNe6f-0001XD-Fz for patchwork@mira.cbaines.net; Sun, 12 Apr 2020 11:01:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36360) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNe6Z-0001Wi-Aw for guix-patches@gnu.org; Sun, 12 Apr 2020 11:01:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNe6Y-000594-3N for guix-patches@gnu.org; Sun, 12 Apr 2020 11:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47118) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNe6Y-000590-05 for guix-patches@gnu.org; Sun, 12 Apr 2020 11:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNe6X-0002ho-VR for guix-patches@gnu.org; Sun, 12 Apr 2020 11:01:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40575] [PATCH] gnu: Add python-diceware. Resent-From: Matthew Kraai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Apr 2020 15:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40575 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40575@debbugs.gnu.org Cc: Matthew Kraai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158670364510368 (code B ref -1); Sun, 12 Apr 2020 15:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Apr 2020 15:00:45 +0000 Received: from localhost ([127.0.0.1]:58664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNe6G-0002hA-Lx for submit@debbugs.gnu.org; Sun, 12 Apr 2020 11:00:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:56373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNe6E-0002h2-MG for submit@debbugs.gnu.org; Sun, 12 Apr 2020 11:00:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36305) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNe6D-0001Ii-Cw for guix-patches@gnu.org; Sun, 12 Apr 2020 11:00:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNe6C-0004ne-0o for guix-patches@gnu.org; Sun, 12 Apr 2020 11:00:41 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:64584 helo=aws.ftbfs.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jNe6B-0004kr-RW for guix-patches@gnu.org; Sun, 12 Apr 2020 11:00:39 -0400 Received: from ip68-5-94-190.oc.oc.cox.net ([68.5.94.190] helo=localhost.localdomain) by aws.ftbfs.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNe69-00048B-Jq; Sun, 12 Apr 2020 15:00:37 +0000 From: Matthew Kraai Date: Sun, 12 Apr 2020 08:00:36 -0700 Message-Id: <20200412150036.6508-1-kraai@ftbfs.org> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-diceware, python2-diceware): New public variables. --- gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2ecf7115ab..081bc0eb5d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -75,6 +75,7 @@ ;;; Copyright © 2020 Alexandros Theodotou ;;; Copyright © 2020 Lars-Dominik Braun ;;; Copyright © 2020 Alex ter Weele +;;; Copyright © 2020 Matthew Kraai ;;; ;;; This file is part of GNU Guix. ;;; @@ -19521,3 +19522,30 @@ there are extensions that allow you to use it with other frameworks.") register external CLI commands via setuptools entry-points.") (home-page "https://github.com/click-contrib/click-plugins") (license license:bsd-3))) + +(define-public python-diceware + (package + (name "python-diceware") + (version "0.9.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "diceware" version)) + (sha256 + (base32 + "0klb0ysybzlh2wihvir82hgq62v0jjmlcqklwajyms7c0p529yby")))) + (build-system python-build-system) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) + (home-page "https://github.com/ulif/diceware/") + (synopsis "Generates memorable passphrases") + (description "This package generates passphrases by concatenating words +randomly picked from wordlists. It supports several sources of +randomness (including real life dice) and different wordlists (including +cryptographically signed ones).") + (license license:gpl3+))) + +(define-public python2-diceware + (package-with-python2 python-diceware))