From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cGinFgvOGl+TdwAA0tVLHw (envelope-from ) for ; Fri, 24 Jul 2020 12:03:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MF59EgvOGl+3VwAA1q6Kng (envelope-from ) for ; Fri, 24 Jul 2020 12:03:23 +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 08F6094053E for ; Fri, 24 Jul 2020 12:03:23 +0000 (UTC) Received: from localhost ([::1]:40174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jywQ6-0002bx-0T for larch@yhetil.org; Fri, 24 Jul 2020 08:03:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jywPn-0002JX-IL for guix-patches@gnu.org; Fri, 24 Jul 2020 08:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jywPn-0006B0-8t for guix-patches@gnu.org; Fri, 24 Jul 2020 08:03:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jywPn-0003cT-5w for guix-patches@gnu.org; Fri, 24 Jul 2020 08:03:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42082] [PATCH v2 3/6] gnu: Add python-identify. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Jul 2020 12:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42082 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42082@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159559216813844 (code B ref -1); Fri, 24 Jul 2020 12:03:03 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jul 2020 12:02:48 +0000 Received: from localhost ([127.0.0.1]:47060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jywPX-0003bE-WD for submit@debbugs.gnu.org; Fri, 24 Jul 2020 08:02:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:55200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jywPV-0003b6-Ne for submit@debbugs.gnu.org; Fri, 24 Jul 2020 08:02:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jywPV-0002HN-H6 for guix-patches@gnu.org; Fri, 24 Jul 2020 08:02:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jywPS-00068F-1G for guix-patches@gnu.org; Fri, 24 Jul 2020 08:02:45 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 9C0592400FB for ; Fri, 24 Jul 2020 14:02:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1595592160; bh=GZFkAVGc2mGqHsMnEJJd/4X594Dvo0Ies0h+lnso2p0=; h=From:To:Cc:Subject:Date:From; b=dkthioMdH8FbuGN40t5uAjFc65aNOvqJf3phu/iwL40xhOn2gCabrgiyF/wHjXo+R bL2Ifwx8sni8lK498C4xmZ/d02BD/Cd7Ha5gwIKV4iEAgfkIBJ8KO/pGKiWDcg9ftd LVGV+DKRHa4a2ueOKK3USDobwtisTflgjFWfmlvQEiENFGqdiFpoSHWcebH19pHhlH Lo71Q6E1BApwljhig/yxJUQFLXQfXm5ugsfAyAPqqTxrVVuOMZ2vpoGqYXu4AktI0A QxoeQKce3h4tsINuxiJ0/sQauhyN9YBLzhGDGplcKqnBwBUNgLEksra/cSPoWS0IV6 iGHrZvu0fIf2w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BCnrZ6YgPz9rxD; Fri, 24 Jul 2020 14:02:38 +0200 (CEST) From: Vinicius Monego Date: Fri, 24 Jul 2020 09:01:41 -0300 Message-Id: <20200724120144.500-3-monego@posteo.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200724120144.500-1-monego@posteo.net> References: <20200627154645.64264-1-monego@posteo.net> <20200724120144.500-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=monego@posteo.net; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/24 06:47:42 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=dkthioMd; 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-Spam-Score: 5.09 X-TUID: 9RWylRPV0fK+ * gnu/packages/python-xyz.scm (python-identify): New variable. --- Update to 1.4.25. gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0bc2b06cf5..87ea9fcaa2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -162,6 +162,7 @@ #:use-module (gnu packages terminals) #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) + #:use-module (gnu packages textutils) #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) @@ -17269,6 +17270,39 @@ library to allow local file system access via @code{file://} URLs.") (define-public python2-requests-file (package-with-python2 python-requests-file)) +(define-public python-identify + (package + (name "python-identify") + (version "1.4.25") + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/chriskuehl/identify") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fqgci6skckcq0x5pnxh6k2qjzn1ndsrgha1j6wwv1ld4g9bd3hz")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest" "-vv")))))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-editdistance" ,python-editdistance))) + (home-page "https://github.com/chriskuehl/identify") + (synopsis "File identification library for Python") + (description + "File identification library for Python. Given a file (or some information +about a file), return a set of standardized tags identifying what the file is.") + (license license:expat))) + (define-public python-tldextract (package (name "python-tldextract") -- 2.20.1