# -*- 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-asv
version             0.6.5
revision            0

categories-append   devel
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Airspeed Velocity: A simple Python history benchmarking tool
long_description    {*}${description}

homepage            https://github.com/airspeed-velocity/asv

checksums           rmd160  98fabc36d2862b1d3c48f0603041a972a4508ef1 \
                    sha256  a8eeb7c5037cd78c146bd727d27203132438d4d62f36e669eb0cd5d63da0cf39 \
                    size    402650

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    patchfiles      patch-pyproject.toml.diff

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

    depends_lib-append \
                    port:py${python.version}-asv-runner \
                    port:py${python.version}-importlib-metadata \
                    port:py${python.version}-json5 \
                    port:py${python.version}-packaging \
                    port:py${python.version}-tabulate \
                    port:py${python.version}-virtualenv

    if {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-tomli
    }
}
