# -*- 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-cbor2
version             5.7.1
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

description         Pure Python CBOR de-serializer with extensive tag support
long_description    {*}${description}

homepage            https://github.com/agronholm/cbor2

checksums           rmd160  0eec5f22025e643f12135b90014c60cd2fad6b07 \
                    sha256  7a405a1d7c8230ee9acf240aad48ae947ef584e8af05f169f3c1bde8f01f8b71 \
                    size    102467

python.versions     310 311 312 313 314

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

    depends_test-append \
                    port:py${python.version}-hypothesis

    test.run        yes
}
