# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-filetype
version             1.2.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Infer file type and MIME type of any file/buffer
long_description    {*}${description}

homepage            https://github.com/h2non/filetype.py

checksums           rmd160  bfcc4dd0b427e9a5d18c0e45049f2ba8f1febb14 \
                    sha256  66b56cd6474bf41d8c54660347d37afcc3f7d1970648de365c102ef77548aadb \
                    size    998020

python.versions     39 310 311 312 313 314

if {${name} ne ${subport}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst History.md \
            LICENSE ${destroot}${docdir}
    }

    test.run        yes
    python.test_framework unittest
}
