# -*- 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-ipaddress
version             1.0.23
revision            0
categories-append   devel
platforms           {darwin any}
license             PSF
supported_archs     noarch

python.versions     27 310 311 312 313

maintainers         {stromnov @stromnov} openmaintainer

description         IPv4/IPv6 manipulation library
long_description    {*}${description}

homepage            https://github.com/phihag/ipaddress

checksums           rmd160  500a7b9a17545ff9d9d27e653c11bce238a08f9c \
                    sha256  b7f8e0369580bb4a24d5ba1d7cc29660a4a6987763faf1d8a8046830e020e7e2 \
                    size    32958

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

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