# -*- 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
PortGroup           github 1.0

github.setup        aresch rencode 1.0.6 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-rencode
revision            0
license             GPL-3+
maintainers         nomaintainer

description         Python module for fast (basic) object serialization similar to bencode
long_description    {*}${description}

checksums           rmd160  b8571be3ea709a76e22dea6749cd1a56fed290f7 \
                    sha256  63c586de1497d951b9f211f2fbf7dddc1d0d8378f5564000005a352efcf0744b \
                    size    25466

python.versions     39 310 311 312

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

    test.run        yes
    python.test_framework
    test.dir        ${worksrcpath}/tests
    test.cmd        ${python.bin} test_rencode.py
}
