# -*- 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-flake8-pep8-naming
python.rootname     pep8-naming
version             0.14.1
revision            0

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

description         Check PEP-8 naming conventions, plugin for flake8
long_description    {*}${description}.

homepage            https://github.com/PyCQA/pep8-naming

checksums           rmd160  9c3aba5f45d0dc3cbe6cfa93d5eddb01f97bb439 \
                    sha256  1ef228ae80875557eb6c1549deafed4dabbf3261cfcafa12f773fe0db9be8a36 \
                    size    16546

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-flake8-polyfill

    test.run        yes
    python.test_framework
    test.cmd        ${python.bin} run_tests.py

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