Received: by mail.netbsd.org (Postfix, from userid 605) id 8946484DC1; Tue, 19 May 2020 16:58:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 10A5284D71 for ; Tue, 19 May 2020 16:58:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id NeMqr890WHjv for ; Tue, 19 May 2020 16:58:23 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 4844F84D44 for ; Tue, 19 May 2020 16:58:23 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 41ECEFB27; Tue, 19 May 2020 16:58:23 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1589907503218470" MIME-Version: 1.0 Date: Tue, 19 May 2020 16:58:23 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/sysutils/py-filetype To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20200519165823.41ECEFB27@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1589907503218470 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Tue May 19 16:58:23 UTC 2020 Added Files: pkgsrc/sysutils/py-filetype: DESCR Makefile PLIST distinfo Log Message: sysutils/py-filetype: import py-filetype-1.0.7 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. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/py-filetype/DESCR \ pkgsrc/sysutils/py-filetype/Makefile pkgsrc/sysutils/py-filetype/PLIST \ pkgsrc/sysutils/py-filetype/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1589907503218470 Content-Disposition: inline Content-Length: 4407 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/sysutils/py-filetype/DESCR diff -u /dev/null pkgsrc/sysutils/py-filetype/DESCR:1.1 --- /dev/null Tue May 19 16:58:23 2020 +++ pkgsrc/sysutils/py-filetype/DESCR Tue May 19 16:58:23 2020 @@ -0,0 +1,4 @@ +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. Index: pkgsrc/sysutils/py-filetype/Makefile diff -u /dev/null pkgsrc/sysutils/py-filetype/Makefile:1.1 --- /dev/null Tue May 19 16:58:23 2020 +++ pkgsrc/sysutils/py-filetype/Makefile Tue May 19 16:58:23 2020 @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1 2020/05/19 16:58:23 wiz Exp $ + +DISTNAME= filetype-1.0.7 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= sysutils python +MASTER_SITES= ${MASTER_SITE_GITHUB:=h2non/} +GITHUB_PROJECT= filetype.py +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= khorben@defora.org +HOMEPAGE= https://github.com/h2non/filetype.py/ +COMMENT= Infer binary file types checking the magic numbers signature +LICENSE= mit + +TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark-[0-9]*:../../devel/py-test-benchmark + +PYTHON_VERSIONED_DEPENDENCIES+= test:test + +USE_LANGUAGES= # none + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} py.test-${PYVERSSUFFIX} + +.include "../../lang/python/versioned_dependencies.mk" +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/sysutils/py-filetype/PLIST diff -u /dev/null pkgsrc/sysutils/py-filetype/PLIST:1.1 --- /dev/null Tue May 19 16:58:23 2020 +++ pkgsrc/sysutils/py-filetype/PLIST Tue May 19 16:58:23 2020 @@ -0,0 +1,57 @@ +@comment $NetBSD: PLIST,v 1.1 2020/05/19 16:58:23 wiz Exp $ +${PYSITELIB}/examples/__init__.py +${PYSITELIB}/examples/__init__.pyo +${PYSITELIB}/examples/__init__.pyc +${PYSITELIB}/examples/buffer.pyo +${PYSITELIB}/examples/buffer.pyc +${PYSITELIB}/examples/bytes.pyo +${PYSITELIB}/examples/bytes.pyc +${PYSITELIB}/examples/file.pyo +${PYSITELIB}/examples/file.pyc +${PYSITELIB}/examples/buffer.py +${PYSITELIB}/examples/bytes.py +${PYSITELIB}/examples/file.py +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/${EGG_INFODIR}/zip-safe +${PYSITELIB}/filetype/__init__.py +${PYSITELIB}/filetype/__init__.pyo +${PYSITELIB}/filetype/__init__.pyc +${PYSITELIB}/filetype/filetype.pyo +${PYSITELIB}/filetype/filetype.pyc +${PYSITELIB}/filetype/helpers.pyo +${PYSITELIB}/filetype/helpers.pyc +${PYSITELIB}/filetype/match.pyo +${PYSITELIB}/filetype/match.pyc +${PYSITELIB}/filetype/utils.pyo +${PYSITELIB}/filetype/utils.pyc +${PYSITELIB}/filetype/filetype.py +${PYSITELIB}/filetype/helpers.py +${PYSITELIB}/filetype/match.py +${PYSITELIB}/filetype/types/__init__.py +${PYSITELIB}/filetype/types/__init__.pyo +${PYSITELIB}/filetype/types/__init__.pyc +${PYSITELIB}/filetype/types/archive.pyo +${PYSITELIB}/filetype/types/archive.pyc +${PYSITELIB}/filetype/types/audio.pyo +${PYSITELIB}/filetype/types/audio.pyc +${PYSITELIB}/filetype/types/base.pyo +${PYSITELIB}/filetype/types/base.pyc +${PYSITELIB}/filetype/types/font.pyo +${PYSITELIB}/filetype/types/font.pyc +${PYSITELIB}/filetype/types/image.pyo +${PYSITELIB}/filetype/types/image.pyc +${PYSITELIB}/filetype/types/isobmff.pyo +${PYSITELIB}/filetype/types/isobmff.pyc +${PYSITELIB}/filetype/types/video.pyo +${PYSITELIB}/filetype/types/video.pyc +${PYSITELIB}/filetype/types/archive.py +${PYSITELIB}/filetype/types/audio.py +${PYSITELIB}/filetype/types/base.py +${PYSITELIB}/filetype/types/font.py +${PYSITELIB}/filetype/types/image.py +${PYSITELIB}/filetype/types/isobmff.py +${PYSITELIB}/filetype/types/video.py +${PYSITELIB}/filetype/utils.py Index: pkgsrc/sysutils/py-filetype/distinfo diff -u /dev/null pkgsrc/sysutils/py-filetype/distinfo:1.1 --- /dev/null Tue May 19 16:58:23 2020 +++ pkgsrc/sysutils/py-filetype/distinfo Tue May 19 16:58:23 2020 @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/05/19 16:58:23 wiz Exp $ + +SHA1 (filetype-1.0.7.tar.gz) = 879921eab760f802e95fbb6dbcdc38e0c1da692c +RMD160 (filetype-1.0.7.tar.gz) = 23fa944a61ad168d58171b942b295501b08115b2 +SHA512 (filetype-1.0.7.tar.gz) = f6d861a9108ffb796858bfdfb26d1bdf6aa9704794fa86340cc36a2920b4f11e12faf4271d19bca9a89be76d8fcff43e8859c8def2525ddbadd52a18c7f68cac +Size (filetype-1.0.7.tar.gz) = 667644 bytes --_----------=_1589907503218470--