From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:48235) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9Zyx-0001PC-OH for guix-patches@gnu.org; Wed, 04 Mar 2020 14:47:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9Zyw-0003Q7-KK for guix-patches@gnu.org; Wed, 04 Mar 2020 14:47:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9Zyw-0003Pp-H3 for guix-patches@gnu.org; Wed, 04 Mar 2020 14:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j9Zyw-0006Ky-Fj for guix-patches@gnu.org; Wed, 04 Mar 2020 14:47:02 -0500 Subject: [bug#39916] [PATCH] gnu: Add python-blurhash. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:47909) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9Zy1-0000Ot-5i for guix-patches@gnu.org; Wed, 04 Mar 2020 14:46:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9Zy0-0001aG-1V for guix-patches@gnu.org; Wed, 04 Mar 2020 14:46:05 -0500 Received: from flashner.co.il ([178.62.234.194]:56710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9Zxz-0001ZE-S1 for guix-patches@gnu.org; Wed, 04 Mar 2020 14:46:03 -0500 From: Efraim Flashner Date: Wed, 4 Mar 2020 21:45:31 +0200 Message-Id: <20200304194531.11367-1-efraim@flashner.co.il> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: 39916@debbugs.gnu.org Cc: Efraim Flashner * gnu/packages/python-crypto.scm (python-blurhash): New variable. --- gnu/packages/python-crypto.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.= scm index 834ab5d97d..8d413eda8d 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -784,6 +784,40 @@ key), SSH public key, ASC-encoded OpenPGP key, APK A= ndroid application, LDIFF file, and more.") (license license:gpl3))) =20 +(define-public python-blurhash + (package + (name "python-blurhash") + (version "1.1.4") + (source + (origin + ;; Tests not included in pypi release and releases not tagged in= git repo. + (method git-fetch) + (uri (git-reference + (url "https://github.com/halcy/blurhash-python") + (commit "22e081ef1c24da1bb5c5eaa2c1d6649724deaef8"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1qq6mhydlp7q3na4kmaq3871h43wh3pyfyxr4b79bia73wjdylxf")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (delete-file "setup.cfg") + (invoke "pytest")))))) + (native-inputs + `(("python-numpy" ,python-numpy) + ("python-pillow" ,python-pillow) + ("python-pytest" ,python-pytest))) + (home-page "https://github.com/halcy/blurhash-python") + (synopsis + "Pure-Python implementation of the blurhash algorithm") + (description + "Pure-Python implementation of the blurhash algorithm.") + (license license:expat))) + (define-public python-ecpy (package (name "python-ecpy") --=20 2.25.1