# -*- 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.9.1
revision            0

categories-append   devel
platforms           darwin
supported_archs     noarch
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  114e9d9f2e7695e2eb76b1648b2a48860babc25d \
                    sha256  a33d38177056321a167decd6ba70b890856ba5025f0a8eca6a3eda607da93caf \
                    size    15550

python.versions     27 35 36 37 38 39

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

    depends_lib-append \
                    port:py${python.version}-flake8-polyfill

    test.run        yes
    test.cmd        ${python.bin} run_tests.py
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

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

    livecheck.type  none
}
