From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#40575] [PATCH] gnu: Add python-diceware. Resent-Message-ID: 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 From: Matthew Kraai Date: Sun, 12 Apr 2020 08:00:36 -0700 Message-Id: <20200412150036.6508-1-kraai@ftbfs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40575@debbugs.gnu.org Cc: Matthew Kraai * 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)) -- 2.26.0