# -*- 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-pyfatfs
version             1.1.0
revision            0

maintainers         nomaintainer
platforms           {darwin any}
supported_archs     noarch
license             MIT

description         A filesystem module to access or modify FAT filesystems
long_description    ${description}

homepage            https://github.com/nathanhi/pyfatfs

checksums           rmd160  ba788728d3f2d82a0947cd4d8db7a8834fd1f3e5 \
                    sha256  9725ccd0a4da1c09c27358abbf10f08c043ac84210af576803e087f51a2b30e0 \
                    size    55459

patchfiles-append   patch-setuptools_no_version.diff

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-pip \
                            port:py${python.version}-setuptools_scm
    depends_lib-append      port:py${python.version}-fs
    depends_test-append     port:py${python.version}-pytest-mock

    test.run                yes
}
