# -*- 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-construct

version             2.10.70
checksums           rmd160  522564e63ab3e53d92b4cd3d124ade5d3b4762a3 \
                    sha256  4d2472f9684731e58cc9c56c463be63baa1447d674e0d66aeb5627b22f512c29 \
                    size    86337
revision            0

categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     27 39 310 311 312 313

maintainers         {michaelld @michaelld} openmaintainer

description         python module for parsing and building binary or textual data structures

long_description    \
    Construct is a python library for parsing and building of data structures \
    (binary or textual). It is based on the concept of defining data \
    structures in a declarative manner, rather than procedural code: more \
    complex constructs are composed of a hierarchy of simpler ones.

homepage            https://construct.readthedocs.org

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version         2.10.54
        checksums       rmd160 8ef31fe45319257ca905e25bee6a108a5f659e2a \
                        sha256  3c130a67f05610557dd1b27e062a7165f92b517f9ed50db880ebe068696fd712 \
                        size    55318
        revision        0

        depends_build-append \
                        port:py${python.version}-setuptools
    }
}
