sysutils/py-puremagic 2.2.0 FreeBSD
Pure python implementation of magic file detection
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
414d337b23- License
- MIT
- Categories
- sysutils, python
- Package size
- 103.2 KiB, 501.5 KiB installed
Description
Puremagic is a python module that will identify a file from 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.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | sysutils/py-puremagic | 2.2.0 |
| NetBSD | sysutils/py-puremagic | 2.2.0 |
| DragonFly | sysutils/py-puremagic | 1.24_1 |
| MidnightBSD | sysutils/py-puremagic | 1.30_2 |
Install
Binary package:
pkg install py312-puremagic
From the ports tree:
cd /usr/ports/sysutils/py-puremagic/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-puremagic>0:sysutils/py-puremagic
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.2.0 | 2.2.0 | 1.14 | 1.24_1 | 2.2.0 |
| FreeBSD:14:quarterly | 2.2.0 | 2.2.0 | n/a | 1.24_1 | 2.2.0 |
| FreeBSD:15:latest | 2.2.0 | 2.2.0 | n/a | 1.24_1 | 1.24_1 |
| FreeBSD:15:quarterly | 2.2.0 | 2.2.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.2.0 | 2.2.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
The full lists below include those, and their dependencies in turn.
Build dependencies 17
Run dependencies 7
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| puremagic-2.2.0.tar.gz | 1.189752e+06 | eb4bddf07c177c4b434554b92165b67449f5a51e152b976202d6254498810eef |
Master sites 1
- PYPI
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
414d337b23 |
Pete Diamond | sysutils/py-puremagic: Update to 2.2.0 Co-authored-by: Michael Osipov <[email protected]>
PR: 298690
Approved by: [email protected] (maintainer) |