Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/py-filetype sysutils/py-filetype: import py-f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/509ef53b404e
branches: trunk
changeset: 432204:509ef53b404e
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue May 19 16:58:23 2020 +0000
description:
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.
diffstat:
sysutils/py-filetype/DESCR | 4 +++
sysutils/py-filetype/Makefile | 26 +++++++++++++++++++
sysutils/py-filetype/PLIST | 57 +++++++++++++++++++++++++++++++++++++++++++
sysutils/py-filetype/distinfo | 6 ++++
4 files changed, 93 insertions(+), 0 deletions(-)
diffs (109 lines):
diff -r a350f01dbf06 -r 509ef53b404e sysutils/py-filetype/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-filetype/DESCR Tue May 19 16:58:23 2020 +0000
@@ -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.
diff -r a350f01dbf06 -r 509ef53b404e sysutils/py-filetype/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-filetype/Makefile Tue May 19 16:58:23 2020 +0000
@@ -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@localhost
+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"
diff -r a350f01dbf06 -r 509ef53b404e sysutils/py-filetype/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-filetype/PLIST Tue May 19 16:58:23 2020 +0000
@@ -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
diff -r a350f01dbf06 -r 509ef53b404e sysutils/py-filetype/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-filetype/distinfo Tue May 19 16:58:23 2020 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index