From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eJiPFHOVzmCwhgAAgWs5BA (envelope-from ) for ; Sun, 20 Jun 2021 03:10:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QPwNEHOVzmB0KAAAbx9fmQ (envelope-from ) for ; Sun, 20 Jun 2021 01:10:11 +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 052E513979 for ; Sun, 20 Jun 2021 03:10:11 +0200 (CEST) Received: from localhost ([::1]:50956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lulyT-00005f-Tf for larch@yhetil.org; Sat, 19 Jun 2021 21:10:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lulyO-0008VR-EN for guix-patches@gnu.org; Sat, 19 Jun 2021 21:10:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49491) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lulyO-00011c-6o for guix-patches@gnu.org; Sat, 19 Jun 2021 21:10:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lulyO-0004Im-36 for guix-patches@gnu.org; Sat, 19 Jun 2021 21:10:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49123] [PATCH 05/24] gnu: Add python-filetype. Resent-From: slg <0x2d@disroot.org> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Jun 2021 01:10:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49123 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49123@debbugs.gnu.org Cc: slg <0x2d@disroot.org> Received: via spool by 49123-submit@debbugs.gnu.org id=B49123.162415139216417 (code B ref 49123); Sun, 20 Jun 2021 01:10:04 +0000 Received: (at 49123) by debbugs.gnu.org; 20 Jun 2021 01:09:52 +0000 Received: from localhost ([127.0.0.1]:32785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lulyB-0004Ge-Sv for submit@debbugs.gnu.org; Sat, 19 Jun 2021 21:09:52 -0400 Received: from knopi.disroot.org ([178.21.23.139]:44260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <0x2d@disroot.org>) id 1luly8-0004GN-PF for 49123@debbugs.gnu.org; Sat, 19 Jun 2021 21:09:49 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3CB6D5C934; Sun, 20 Jun 2021 03:09:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K7DYYp2elFh1; Sun, 20 Jun 2021 03:09:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1624151386; bh=XWKoKURa8raylq0L8n6wSUNl4h7/nPqbSefKU5qm4os=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=i3BJLA2B32c9K8ImUHMIW1JM63DDCg17XlzmiGAL2uYssGpb2dt9Al1q/He4BxcHt nA1mi8/0yN/xG7rg9ulNCccvSZw5a3MO504FQCB9kA/nGG0Vq2t24AnSKf1JX+Qu0R j5R5SwjmsOo3Zibvn5SoMPd3knC8gkfOtTfeXf2ulUq2WVKXANI8awSZp4mybTOGju jLEilRurxD3QNMh/7K78dbRxiBFXy5Qo9Bo4DjS002JS1xtuOjdpyUhcXSe3UMtlD5 YINLqdr5v9tvnIlMKDiyFmBhBQpL7FQQU2LP5pYEaXPSntzUtgJqiUBEvnY80GYE41 gUYLq/n5s3XbA== Date: Sat, 19 Jun 2021 22:07:23 -0300 Message-Id: <20210620010742.4259-5-0x2d@disroot.org> In-Reply-To: <20210620010742.4259-1-0x2d@disroot.org> References: <20210620010742.4259-1-0x2d@disroot.org> 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" Reply-to: slg <0x2d@disroot.org> X-ACL-Warn: , slg via Guix-patches From: slg via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624151411; h=from:from:sender:sender:reply-to: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=UEp9SrzmpiqSkvXouihg7ZBzqsrp9+27pilvI5GSXWc=; b=Ffmocp1oG1icQgYkV4BIqsoASy1rmnU3FiMuqvIsTQDtcfyl0jODj6dEjM5O8KRd5OgVmd E4imouK9wsSsvs/pCfiVeqjIyJmfdJRX6ZCLC+stp31Ny8WBVwNgmO9fiiqwL8Km5CNNQs X56FBixw3sVQ4vPTT/uSxH8J9Guw+i+dr308io3n5oUlhRKQk2QTh65/ZPJf53I6El+yVq pXBIGF6dYAA03MnFsILWAtR7M3uSTb+1zywtOfnWkKUyQ/ftl5kK1fHybeDgz7BN9rszqI TT/mEP9QpW70pdHsyTK7WqROFkc4GRXw2OvTyasVwjjz5TPwnGcvqWO48ucAlg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624151411; a=rsa-sha256; cv=none; b=qoXAmJpedLx4iK+QIKMVwFO1KlS1GT7AU/xsUKHq+7wYuvjFgVMk6YckzZ9qio4cdiDqzT zB4STY8oH5kdfXtpwp41xbUgCi8TTWj8QXbLd+QqP19+0DE9PQpe0AHkgMEFMLF4uqQ6Ai 2hvCLnTRNPheA+Zp32jcjEOBHZ5Kk9pxq66qhRsssOFKWqcMFIzzNiOvQ8ePRzL+q1FfM7 +++KPc7gI0P62wCwlJ8FBAhIwgami9i9BLLZESXK25Wx5rXzOxJTKirXrtwR3L/CkbeNaC 5dwYEsE+/07uQzJ1PA9Zv31u/JvnP3k5Chlc0epvxn6RfEmnfhRZ8C30BmGOSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=i3BJLA2B; dmarc=pass (policy=none) header.from=gnu.org; 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: 1.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=i3BJLA2B; dmarc=pass (policy=none) header.from=gnu.org; 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: 052E513979 X-Spam-Score: 1.58 X-Migadu-Scanner: scn1.migadu.com X-TUID: WK0UH16I4vam * gnu/packages/python-xyz.scm (python-filetype): New variable. --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 54c7d91116..6831e2365b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26013,3 +26013,24 @@ up the mess made by various rich text editors and or copy-pasting to make styling of webpages simpler and more consistent. It builds on the excellent HTML cleaner in lxml to make the result both valid and safe.") (license license:bsd-3))) + +(define-public python-filetype + (package + (name "python-filetype") + (version "1.0.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "filetype" version)) + (sha256 + (base32 + "19vav4w8vvcnrps1mirjkrv4pr1khwn5ma6m5pgpxd4qip73wffs")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ;; FIXME: obscure error in test + (home-page "https://github.com/h2non/filetype.py") + (synopsis "Python package for checking file type and MIME type") + (description "Small and dependency free Python package to infer file type +and MIME type checking the magic numbers signature of a file or buffer. This +is a Python port from filetype Go package.") + (license license:x11))) -- 2.32.0