View | Details | Raw Unified | Return to bug 258593 | Differences between
and this patch

Collapse All | Expand All

(-)py-puremagic/Makefile (+25 lines)
Line 0 Link Here
1
PORTNAME=	puremagic
2
PORTVERSION=	1.10
3
CATEGORIES=	sysutils python
4
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
6
MAINTAINER=	james@french.id.au
7
COMMENT=	Pure python implementation of magic file detection
8
9
LICENSE=	MIT
10
LICENSE_FILE=	${WRKSRC}/LICENSE
11
12
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}argparse>0:devel/py-argparse@${PY_FLAVOR}
13
14
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
15
16
USES=		python:3.5+
17
USE_PYTHON=	distutils autoplist concurrent
18
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	cdgriffith
21
22
do-test:
23
	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= test/
24
25
.include <bsd.port.mk>
(-)py-puremagic/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1632109084
2
SHA256 (cdgriffith-puremagic-1.10_GH0.tar.gz) = 0c53d75e460bf383708ae4c4c055288a5cdfde0b6de888d90a1f02346f7a5cc5
3
SIZE (cdgriffith-puremagic-1.10_GH0.tar.gz) = 294909
(-)py-puremagic/pkg-descr (+12 lines)
Line 0 Link Here
1
Puremagic is a python module that will identify a file from magic numbers
2
3
It is designed to be minimalistic and inherently cross platform compatible. It
4
is also designed to be a stand in for python-magic, it incorporates the
5
functions from_file(filename[, mime]) and from_string(string[, mime]) however
6
the magic_file() and magic_string() are more powerful and will also display
7
confidence and duplicate matches.
8
9
It does NOT try to match files off non-magic string. In other words it will not
10
search for a string within a certain window of bytes like others might.
11
12
WWW: https://pypi.org/project/puremagic/

Return to bug 258593