# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
python.versions 27 34 35 36
maintainers stromnov openmaintainer
description File type identification using libmagic
long_description Determines the mime type of a file using magic \
numbers. Can also operate on arbitrary data streams. \
Much like the Unix file(1) program.
homepage http://github.com/ahupp/python-magic
master_sites pypi:p/python-magic
distname python-magic-${version}
checksums rmd160 b152ea6d19e91449e5532dc29fc1d38961ccd395 \
sha256 604eace6f665809bebbb07070508dfa8cabb2d7cb05be9a56706c60f864f1289
patchfiles patch-prefix-lib.diff
reinplace -E "s:__PREFIX__:${prefix}:g" ${worksrcpath}/magic.py
if {${name} ne ${subport}} {
port:py${python.version}-setuptools
depends_lib-append port:file
livecheck.name python-magic