pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/py-filetype



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.

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@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"
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



Home | Main Index | Thread Index | Old Index