pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/py-puremagic
Module Name: pkgsrc
Committed By: wiz
Date: Thu Jun 1 16:02:57 UTC 2023
Added Files:
pkgsrc/sysutils/py-puremagic: DESCR Makefile PLIST distinfo
Log Message:
sysutils/py-puremagic: import py-puremagic-1.15
Packaged for wip by Olaf Seibert and myself.
puremagic is a pure python module that will identify a file based off its
magic numbers.
It is designed to be minimalistic and inherently cross platform
compatible. It is also designed to be a stand in for python-magic, it
incorporates the functions from_file(filename[, mime]) and
from_string(string[, mime]) however the magic_file() and magic_string()
are more powerful and will also display confidence and duplicate
matches.
It does NOT try to match files off non-magic string. In other words it
will not search for a string within a certain window of bytes like
others might.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/py-puremagic/DESCR \
pkgsrc/sysutils/py-puremagic/Makefile pkgsrc/sysutils/py-puremagic/PLIST \
pkgsrc/sysutils/py-puremagic/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-puremagic/DESCR
diff -u /dev/null pkgsrc/sysutils/py-puremagic/DESCR:1.1
--- /dev/null Thu Jun 1 16:02:57 2023
+++ pkgsrc/sysutils/py-puremagic/DESCR Thu Jun 1 16:02:57 2023
@@ -0,0 +1,13 @@
+puremagic is a pure python module that will identify a file based off its
+magic numbers.
+
+It is designed to be minimalistic and inherently cross platform
+compatible. It is also designed to be a stand in for python-magic, it
+incorporates the functions from_file(filename[, mime]) and
+from_string(string[, mime]) however the magic_file() and magic_string()
+are more powerful and will also display confidence and duplicate
+matches.
+
+It does NOT try to match files off non-magic string. In other words it
+will not search for a string within a certain window of bytes like
+others might.
Index: pkgsrc/sysutils/py-puremagic/Makefile
diff -u /dev/null pkgsrc/sysutils/py-puremagic/Makefile:1.1
--- /dev/null Thu Jun 1 16:02:57 2023
+++ pkgsrc/sysutils/py-puremagic/Makefile Thu Jun 1 16:02:57 2023
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2023/06/01 16:02:57 wiz Exp $
+
+DISTNAME= puremagic-1.15
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= sysutils python
+MASTER_SITES= ${MASTER_SITE_PYPI:=p/puremagic/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/cdgriffith/puremagic
+COMMENT= Pure python implementation of magic file detection
+LICENSE= gnu-lgpl-v3
+
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/py-puremagic/PLIST
diff -u /dev/null pkgsrc/sysutils/py-puremagic/PLIST:1.1
--- /dev/null Thu Jun 1 16:02:57 2023
+++ pkgsrc/sysutils/py-puremagic/PLIST Thu Jun 1 16:02:57 2023
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1 2023/06/01 16:02:57 wiz Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/puremagic/__init__.py
+${PYSITELIB}/puremagic/__init__.pyc
+${PYSITELIB}/puremagic/__init__.pyo
+${PYSITELIB}/puremagic/__main__.py
+${PYSITELIB}/puremagic/__main__.pyc
+${PYSITELIB}/puremagic/__main__.pyo
+${PYSITELIB}/puremagic/magic_data.json
+${PYSITELIB}/puremagic/main.py
+${PYSITELIB}/puremagic/main.pyc
+${PYSITELIB}/puremagic/main.pyo
Index: pkgsrc/sysutils/py-puremagic/distinfo
diff -u /dev/null pkgsrc/sysutils/py-puremagic/distinfo:1.1
--- /dev/null Thu Jun 1 16:02:57 2023
+++ pkgsrc/sysutils/py-puremagic/distinfo Thu Jun 1 16:02:57 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/06/01 16:02:57 wiz Exp $
+
+BLAKE2s (puremagic-1.15.tar.gz) = 6446e18d0c6d3ad75dc878becc032598154d8afee2ff5126867471d8699a1df1
+SHA512 (puremagic-1.15.tar.gz) = 09aec637380bde0ad4eb82395aac3876870e80b0392ff82149942b97e00b9ee1570edc16d9473c5b0ca436b6a906eda559b2d74be6122a3fbc3f52c2e44d7f94
+Size (puremagic-1.15.tar.gz) = 297469 bytes
Home |
Main Index |
Thread Index |
Old Index