# -*- 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-binaryornot
version             0.6.0
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Ultra-lightweight pure Python package to check if a file \
                    is binary or text.
long_description    {*}${description}

homepage            https://github.com/audreyr/binaryornot

checksums           rmd160  0cef47425b56254948db71066a8918d0f2f76389 \
                    sha256  cc8d57cfa71d74ff8c28a7726734d53a851d02fad9e3a5581fb807f989f702f0 \
                    size    478718

python.versions     310 311 312 313 314
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_test-append \
                    port:py${python.version}-hypothesis

    test.run        yes
}
