# -*- 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.6
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  2c2d3929704509fab14ccb7e2c23c98fd0990247 \
                    sha256  82e47105db8f56d9b1e54763dd01a1709d2722ad2f727b21521628c3e110bdc6 \
                    size    403111

python.versions     310 311 312 313 314

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
    }
}
