From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eMkrC0tQ+2B+3wAAgWs5BA (envelope-from ) for ; Sat, 24 Jul 2021 01:27:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qFGvBktQ+2CWcwAAbx9fmQ (envelope-from ) for ; Fri, 23 Jul 2021 23:27:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D69C6112C1 for ; Sat, 24 Jul 2021 01:27:06 +0200 (CEST) Received: from localhost ([::1]:37036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m74ZN-0005On-Vo for larch@yhetil.org; Fri, 23 Jul 2021 19:27:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m74ZK-0005OY-Si for guix-patches@gnu.org; Fri, 23 Jul 2021 19:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m74ZK-0005qy-LT for guix-patches@gnu.org; Fri, 23 Jul 2021 19:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m74ZK-0007lF-J9 for guix-patches@gnu.org; Fri, 23 Jul 2021 19:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49207] [PATCH 1/6] gnu: Add python-imagehash. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Jul 2021 23:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49207 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 49207@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 49207-submit@debbugs.gnu.org id=B49207.162708277229687 (code B ref 49207); Fri, 23 Jul 2021 23:27:02 +0000 Received: (at 49207) by debbugs.gnu.org; 23 Jul 2021 23:26:12 +0000 Received: from localhost ([127.0.0.1]:44898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m74YV-0007il-Vs for submit@debbugs.gnu.org; Fri, 23 Jul 2021 19:26:12 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m74YT-0007iL-Vd for 49207@debbugs.gnu.org; Fri, 23 Jul 2021 19:26:10 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 6C731240026 for <49207@debbugs.gnu.org>; Sat, 24 Jul 2021 01:26:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1627082764; bh=1KpZniSAk4EjnPSQotzYLqJ604r77rkNQLF/YY+WVFo=; h=From:To:Cc:Subject:Date:From; b=TJySH6LHWQnT9znY9X0jOIDnKRKvTdr8m/w83+DO0Z+C0MQIzNUTwV+JIY87/Kb/k a/Qsbb0coxjSF/t42qBNNQtPXSL0/BYuM0b/J46QqySpv8La6u0XOvqILEPrDpiuUB rE8ckmr3yx6CWzYeKCEcbu5jTRJr2FprZEFouRHStDZD+7XPnBB2SyO4A52q97ecuc UUHHLOTXTwgf2dfHvR/sfYEI5lH8husgMkTkmlk6aAZc9QMbP4VwnZ0u9LxnNvyuxm JeEJOLLjJHrxvugrkMLvUMX6AQzbsbZVISr0m6NLXvlZks9TZnpFpfuQFANwN8jJQQ LvkivUFWjUqmQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GWln74KrVz9rxL; Sat, 24 Jul 2021 01:26:03 +0200 (CEST) From: Vinicius Monego Date: Fri, 23 Jul 2021 23:25:24 +0000 Message-Id: <20210723232529.23745-2-monego@posteo.net> In-Reply-To: <20210723232529.23745-1-monego@posteo.net> References: <20210723232529.23745-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627082826; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=i8gW1yb5LeS1ZWV0306y96LCJvXZ8BJfNL4pHUrK0+Q=; b=E4jfiHo788YHmRD9DGFXZnUq//sTWnGeu/hCVurzgFw/OmvYsjuEYMzYvlDEzQbghJqNb+ XlsKOkuHCxv1y4kWXPxPpGFiETZzPo6dNuphR3cYtRhPx12R33K3erkow45B5dslZzhLNY T2KGeDMVkqrZT+YvckjXEWpiRSPSPeaM37pkyIv4/CZRphVrlyyxjLGXbflNxFVpIipCaG 3WarxJYS18EF5UAaz2Uy/ooBy3rI9Fqc6ZsAstu17IhAetBcUUPdRv89k2aSZ5MKj6mN+I UAJFCozq0VK/htnUEetb9mMc7QWm33yVMpOO9kx79S7P0VLkfm/4nY3ZHcAB1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627082826; a=rsa-sha256; cv=none; b=L8DRldeGocCWMLWnI5yjBrMvucGKbv1HXqB7xxTbIS4RRRqzfw9YnbD1ZYbjkqIv7Pnh5z eCyRQZcbXgsvLl3f1AJceH8RNA78oiYHZdRCUBdvmIVYosef5DALhxb9GD8EYzK6vp+xkA qjjGTfVk6N4TsSabhdlG5NEeDut5JIvBk+fj7Mm9XQvQNR4EO4tF2s8HhPBLDOVIdXZXvU 36iCPEJ0GAtwS8zP8BtjIBN7SJ8D3QWne+lAr8it6gFub4J6MFgUBzlZC6KB/ZVhpQfawA +NyHjiKg1hbHfC6L0+whNft03ExatbsjVr1GM44DeOIUzeLwQ5bdoGo335x13g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=TJySH6LH; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=TJySH6LH; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D69C6112C1 X-Spam-Score: 3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZizjrzZGB2+N * gnu/packages/python-xyz.scm (python-imagehash): New variable. --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d8c3fbec07..eef180b720 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12995,6 +12995,47 @@ The API is as much as possible the similar to jQuery. pyquery uses lxml for fast xml and html manipulation.") (license license:bsd-3))) +(define-public python-imagehash + (package + (name "python-imagehash") + (version "4.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ImageHash" version)) + (sha256 + (base32 "0kgiksjggw2warfz5d04fr3iph47vwxcb8jrlj41ljkhrc3ahsd9")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-numpy" ,python-numpy) + ("python-pillow" ,python-pillow) + ("python-pywavelets" ,python-pywavelets) + ("python-scipy" ,python-scipy) + ("python-six" ,python-six))) + (home-page "https://github.com/JohannesBuchner/imagehash") + (synopsis "Image hashing library") + (description "ImageHash is an Image hashing library. It supports: + +@itemize +@item Average hashing +@item Perceptual hashing +@item Difference hashing +@item Wavelet hashing +@item HSV color hashing (colorhash) +@item Crop-resistant hashing +@end itemize") + (license license:bsd-2))) + (define-public python-anyjson (package (name "python-anyjson") -- 2.30.2