# -*- 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-ipy
python.rootname     IPy
version             1.00
revision            0

categories-append   devel net
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         python module for handling IPv4 and IPv6 addresses and networks
long_description    IPy is a Python module for handling IPv4 and IPv6 \
                    addresses and networks in a fashion similar to perl's \
                    Net::IP and friends. The IP class allows a comfortable \
                    parsing and handling for most notations in use for \
                    IPv4 and IPv6 addresses and networks.

homepage            https://github.com/autocracy/python-ipy
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  2f386828685d7452d1e33b5c4b9a888e2bbed334 \
                    sha256  2f2bf658a858d43868d8a4352b3889cf78c66e2ce678b300dcf518c9149ba621 \
                    size    35324

python.versions     27 35 36 37 38

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

    test.run        yes
    test.cmd        nosetests-${python.branch}
    test.args       -e fuzz
    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} COPYING AUTHORS \
            ChangeLog README.rst ${destroot}${docdir}
    }

    livecheck.type  none
}
