From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXfkv-0005CF-QB for guix-patches@gnu.org; Tue, 26 Jun 2018 00:39:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXfks-0007MP-KW for guix-patches@gnu.org; Tue, 26 Jun 2018 00:39:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXfks-0007Lt-ER for guix-patches@gnu.org; Tue, 26 Jun 2018 00:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXfks-0007H8-8A for guix-patches@gnu.org; Tue, 26 Jun 2018 00:39:02 -0400 Subject: [bug#31958] [PATCH] gnu: Add python-pyblake2. Resent-Message-ID: From: Vagrant Cascadian In-Reply-To: <87h8lqzhq0.fsf@fastmail.com> References: <87o9g0ne4s.fsf@aikidev.net> <874lhqej9d.fsf@fastmail.com> <878t72o9r4.fsf@aikidev.net> <87h8lqzhq0.fsf@fastmail.com> Date: Mon, 25 Jun 2018 21:37:48 -0700 Message-ID: <876026nowz.fsf@aikidev.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: Marius Bakke , 31958@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2018-06-25, Marius Bakke wrote: > Vagrant Cascadian writes: >>> According to COPYING, this software is actually "octuple-licensed": >>> >>> * CC0 Universal 1.0 - http://creativecommons.org/publicdomain/zero/1.0 >>> * Unlicense =E2=80=94 http://unlicense.org/ >>> * WTFPL Version 2 - http://www.wtfpl.net/ >>> * Apache Public License 2.0 - https://www.apache.org/licenses/LICENSE-2= .0 >>> * OpenSSL License - https://www.openssl.org/source/license.html >>> * MIT License - https://opensource.org/licenses/MIT >>> * The BSD 3-Clause License - https://opensource.org/licenses/BSD-3-Clau= se >>> * ISC License - https://opensource.org/licenses/ISC >>> >>> Can you add each of these, along with an explaning comment? >> >> And all of those are merely fallback licenses to the author's intention >> of public domain... and in the files themselves (pyblake2module.c, >> setup.py), they only reference: >> >> http://creativecommons.org/publicdomain/zero/1.0 >> >> But if it's more appropriate for guix to list all possible licenses, >> sure. :) > > Right. I missed the top comment of the COPYING file[0], which dedicates > the software to the public domain. But it also says that you are free > to choose any of the others at your discretion. > > So I think CC0 is appropriate, but please add a comment explaning the > situation. Thanks! > > [0] https://github.com/dchest/pyblake2/blob/master/COPYING Updated patch: =2D fixed commit message =2D moved to python-crypto.scm =2D removed needless linebreak =2D updated description =2D updated licensing to public-domain/cc0 =2D clarified additional licensing in comments Hopefully that covers everything. live well, vagrant --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-python-pyblake2.patch Content-Transfer-Encoding: quoted-printable From=20d6101ee18f130fb13aa75a0978cfc0da33e6b915 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Mon, 25 Jun 2018 21:32:06 -0700 Subject: [PATCH] gnu: Add python-pyblake2. * gnu/packages/python-crypto.scm (python-pyblake2): New variable. =2D-- gnu/packages/python-crypto.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index e29eaea80..214671fd3 100644 =2D-- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -170,6 +170,34 @@ John the Ripper).") ;; the rest is under ISC. (license (list license:isc license:bsd-3 license:bsd-4)))) =20 +(define-public python-pyblake2 + (package + (name "python-pyblake2") + (version "1.1.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyblake2" version)) + (sha256 + (base32 + "0gz9hgznv5zw4qjq43xa56y0yikimx30gffvibxzm0nv5sq7xk2w")))) + (build-system python-build-system) + (home-page "https://github.com/dchest/pyblake2") + (synopsis "BLAKE2 hash function extension module") + (description "Python BLAKE2 hash function extension module. BLAKE2 is +a cryptographic hash function, which offers stronger security while being = as +fast as MD5 or SHA-1, and comes in two flavors: BLAKE2b, optimized for 64-= bit +platforms and produces digests of any size between 1 and 64 bytes, and +BLAKE2s, optimized for 8- to 32-bit platforms and produces digests of any = size +between 1 and 32 bytes. BLAKE2 supports keyed mode (a faster and simpler +replacement for HMAC), salted hashing, personalization, and tree hashing. +Hash objects from this module follow the API of standard library's hashlib +objects.") + ;; The COPYING file declares it as public domain, with the option to + ;; alternately use it under a variety of permissive licenses. cc0 is + ;; explicitly mentioned in setup.py and pyblake2module.c + (license (list license:public-domain license:cc0)))) + (define-public python2-py-bcrypt (package-with-python2 python-py-bcrypt)) =20 =2D-=20 2.11.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAlsxwxwACgkQt4uC1IFL kbYaPQ//f7w5vK0xCiudjdDXRNsunKazsoT1Qp/uT2OdKoTATSKH7RtqjgVlfkdm Wxe3wazhT770/YSYKXmIzGmERxGKinr9OP5xLJFke3LZ3dosdc+LLMqkcVAn1IT8 PmS2jI5w8zmmgRbU+17lk8GSLAp9EXaQQ9Nb1kcbHTkifSYgMAN17rq5+ntFr57m 8EMjvyGgXfMVpSV7N7cnehNvfEWValOGSqpEGtlW80pjdF5waBPVRpuACf9LYpWR w/XCnK10llaJHhf5lVhXVXB7ERQqnjh/BMQ7LUvaB4XOiz2eXkPQCzAM/LT67I7h Uw8XkWsPoD6c4otTWsHF1sx2wiiLtYECGs6gXOBZCA5S169gZoTQA0NCPRCqhPh9 XozflfHSvVG+PlZ2QLKtC0aqMyMbXmXiJSeX1a6nPMfFoERmGZYix83WEN/ajnR9 GXBPFk0cyJa2ycPdyzdwvfasI//ySDzY1/PCQeHciqZJCCzynVEWiWPNZNvtdAmH viFL1PQUa5m5uAM4e3BfO1wOE5qIxlNVORP91vO2ltd1ZQ32NbBLRmFOjQ8MwBPq 1adS+NHOjP6foPgOLzyzcRfjfFRAmSEhQ1y6nilg4HxJRttI3aW4ZTqFpikru0dB dCPdR3voyTVYsuOcX3uoSJJDB+1lstjfKN6+M1JB6WOIGWq4G9M= =cl2S -----END PGP SIGNATURE----- --==-=-=--