pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import filetype.py as wip/py-filetype version 1.0.5



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Thu Oct 31 21:33:40 2019 +0100
Changeset:	3d56806a22a271ece37613aeafa82b70b798a2ec

Modified Files:
	Makefile
Added Files:
	py-filetype/DESCR
	py-filetype/Makefile
	py-filetype/PLIST
	py-filetype/distinfo

Log Message:
Import filetype.py as wip/py-filetype version 1.0.5

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 see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3d56806a22a271ece37613aeafa82b70b798a2ec

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile             |  1 +
 py-filetype/DESCR    |  4 ++++
 py-filetype/Makefile | 19 ++++++++++++++++++
 py-filetype/PLIST    | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 py-filetype/distinfo |  6 ++++++
 5 files changed, 87 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 42779bc013..3d36f86815 100644
--- a/Makefile
+++ b/Makefile
@@ -3423,6 +3423,7 @@ SUBDIR+=	py-ffmpeg-normalize
 SUBDIR+=	py-fiat
 SUBDIR+=	py-figleaf
 SUBDIR+=	py-fileinspector
+SUBDIR+=	py-filetype
 SUBDIR+=	py-fiona
 SUBDIR+=	py-fipy
 SUBDIR+=	py-firehose
diff --git a/py-filetype/DESCR b/py-filetype/DESCR
new file mode 100644
index 0000000000..a758607313
--- /dev/null
+++ b/py-filetype/DESCR
@@ -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 --git a/py-filetype/Makefile b/py-filetype/Makefile
new file mode 100644
index 0000000000..785703d21c
--- /dev/null
+++ b/py-filetype/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	filetype.py
+DISTNAME=	filetype-1.0.5
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	sysutils python
+MASTER_SITES=	${MASTER_SITE_GITHUB:=h2non/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+#DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	khorben%defora.org@localhost
+HOMEPAGE=	https://github.com/h2non/filetype.py/
+COMMENT=	Infer binary file types checking the magic numbers signature
+LICENSE=	mit
+
+USE_LANGUAGES=	# none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-filetype/PLIST b/py-filetype/PLIST
new file mode 100644
index 0000000000..cf84816589
--- /dev/null
+++ b/py-filetype/PLIST
@@ -0,0 +1,57 @@
+@comment $NetBSD$
+${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 --git a/py-filetype/distinfo b/py-filetype/distinfo
new file mode 100644
index 0000000000..7add746a2a
--- /dev/null
+++ b/py-filetype/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (filetype-1.0.5.tar.gz) = e7008c5cc8fb850a4f7df2c7581733a653d059ad
+RMD160 (filetype-1.0.5.tar.gz) = f2635e3b570017ef79e7dca61d637ef0642ca13c
+SHA512 (filetype-1.0.5.tar.gz) = ce9c88a4eb81a5b10a2931f9b6e9a82e0a57d5009305585acee71608447a4f3ad9fc19e39ef02be79de54d83a2ae3f50782758a9e94798f0f5d824ad0bd618f7
+Size (filetype-1.0.5.tar.gz) = 667559 bytes


Home | Main Index | Thread Index | Old Index