From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eLpIEcg+g2QVFwEASxT56A (envelope-from ) for ; Fri, 09 Jun 2023 17:01:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EJEvEcg+g2Rw+QAA9RJhRA (envelope-from ) for ; Fri, 09 Jun 2023 17:01:28 +0200 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 DCE401C95B for ; Fri, 9 Jun 2023 17:01:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7dc0-0005CN-Uc; Fri, 09 Jun 2023 11:01:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7dbq-00058u-QV for guix-patches@gnu.org; Fri, 09 Jun 2023 11:01:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7dbq-0002iy-73 for guix-patches@gnu.org; Fri, 09 Jun 2023 11:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7dbq-0004gf-1V for guix-patches@gnu.org; Fri, 09 Jun 2023 11:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49207] [PATCH v2 1/5] gnu: Add python-imagehash. References: In-Reply-To: Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Jun 2023 15:01: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: patch To: 49207@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 49207-submit@debbugs.gnu.org id=B49207.168632280817899 (code B ref 49207); Fri, 09 Jun 2023 15:01:02 +0000 Received: (at 49207) by debbugs.gnu.org; 9 Jun 2023 15:00:08 +0000 Received: from localhost ([127.0.0.1]:60034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7day-0004ed-Av for submit@debbugs.gnu.org; Fri, 09 Jun 2023 11:00:08 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7dav-0004cP-0r for 49207@debbugs.gnu.org; Fri, 09 Jun 2023 11:00:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 34B3D240029 for <49207@debbugs.gnu.org>; Fri, 9 Jun 2023 16:59:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686322799; bh=+8A7oU0EnzG0PrAHc4m3G6BEe44O/k4kPW5dpxD27RY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=hgDV0KAYT5U264d+N7wDe1JDsCIrzrJsyGcyjwaGFglp9AuhloE4gf6Wxto7qZi84 LHuFrvORqJ9ZEV2eHF/lmo7GoATWCEHwsVT6+zUJG46NiLP5QEIjGNQDoQv/luxQCe W3sqkfGWsuesosYaa/67sjI9AYajG73mv+Ls4xwVX/p910Gey6c1l1TwFs2jBlqCv8 riaBF7aKySHxz/oSI0bMryMUqCBSI1Pc5sXVO1u2HiZq/t64nHHitlLSQgiCGgQeUu DAx3qspSv97oOJ/tZwuAdDRfol7wQzjbq2CtW/qBce/pfkqgj2QRBpD39+9NUIj4TQ 9mS/eOm6knteA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qd44X4M8tz9rxK; Fri, 9 Jun 2023 16:59:56 +0200 (CEST) From: Vinicius Monego Date: Fri, 9 Jun 2023 14:58:50 +0000 Message-Id: <20230609145854.2581045-1-monego@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686322887; a=rsa-sha256; cv=none; b=MHn/RalxEs2NiQb566vH4gD2ra8jg2goqFESyUD6kisEhkGTK6mbswuV7bNnxp2ocqaVQ4 36h1K31YqA0AeXmxbSECimErsOByRfsPaHKJLKqV92+1cst8C++IreLG+NcyCBBccqo0+n EbWTjoH3peady3/W15JwPoPOgukIkRFtnobjseNWlbEbNbcpW30RPGRVUR9m23S0kjFPy4 EcMKCtdH9qX2qq19OoXd9X4UzlnZtPSC481prSCKAcLq1tCjgTee+hmnsjIPJc/PABNTJv GKutz6SOlunIWyDdJuo//5ncyJ5kHrIJLTCR8MctAOtEzO6f1yDNFHBUJcceUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=hgDV0KAY; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686322887; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=pl1LkV0m4r7LvGNPTHOmsi9h+43YvUWndskf0UaV2ec=; b=GeM/ee/9zeUknUZS2qcmWBMdlAvWe6xIE10Fl00XJuf+nf335NF7lNAGl+XNZEvpyqfG9h uQEcsmYHXRE0sGkUOnvPpY5Oe6PEQTTGfTXPSyn811YsTgZk5Ru8nj8M2ras1yMUpTjzIJ gcGYn2SQ9S6nHpX+UcXSMBC2l6vsP3Eqh77PXjLijBym5lfgz7h96a40lBTg/jZqTMP2rP hDeTUiN07vCYw/tJTGGm4ohMBnSIYJI4+5aTYWUexKZJ2PNQiS6QcdBsDlnikef+1O4jSK h+oi1yD1ixi+8HVBeN+W82BYC4ApTi7sAYbhkFaMD1W1Et+gMRDUUivcg7CLmA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=hgDV0KAY; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.41 X-Spam-Score: -2.41 X-Migadu-Queue-Id: DCE401C95B X-TUID: t+LYuq3sCUeh * gnu/packages/digest.scm (python-imagehash): New variable. --- gnu/packages/digest.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/digest.scm b/gnu/packages/digest.scm index 481771804b..405c1769d3 100644 --- a/gnu/packages/digest.scm +++ b/gnu/packages/digest.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2017, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2021 Ryan Prior ;;; Copyright © 2021, 2022 Ricardo Wurmus +;;; Copyright © 2023 Vinicius Monego ;;; ;;; This file is part of GNU Guix. ;;; @@ -29,7 +30,10 @@ (define-module (gnu packages digest) #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (guix utils) + #:use-module (gnu packages check) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-science) + #:use-module (gnu packages python-xyz) #:use-module (ice-9 match)) (define-public wyhash @@ -129,3 +133,34 @@ (define-public python-xxhash (description "This package provides Python bindings for the xxHash hash algorithm.") (license license:bsd-3))) + +(define-public python-imagehash + (package + (name "python-imagehash") + (version "4.3.1") + (source + (origin + (method git-fetch) ;no tests in PyPI + (uri (git-reference + (url "https://github.com/JohannesBuchner/imagehash") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lw9lxzrzy9s5v3xc35vmh97hlyavnla087fp19k77va6v8vbjjf")))) + (build-system pyproject-build-system) + (native-inputs (list python-pytest)) + (propagated-inputs (list python-numpy python-pillow python-pywavelets + python-scipy)) + (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))) -- 2.34.1