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.
This commit is contained in:
parent
c47fd83eef
commit
3d56806a22
1
Makefile
1
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
|
||||
|
|
|
@ -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.
|
|
@ -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
|
||||
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"
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue