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

name                py-scikit-hep-uproot

github.setup        scikit-hep uproot5 5.1.2 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0

checksums           rmd160  2d6ca9f09dd6e4ae56f09b551020ec683b415c68 \
                    sha256  34536fa53f523ab5ed329b21f5727439cd7976835d50f0b90da53716569fb79e \
                    size    910038

license             BSD
platforms           {darwin any}
supported_archs     noarch

maintainers         {jonesc @cjones051073} openmaintainer

description         Uproot is a reader and a writer of the ROOT file format using only Python and Numpy.
long_description    {*}${description}

python.versions     39 310 311

if {${name} ne ${subport}} {
    depends_lib-append \
        port:py${python.version}-scikit-hep-awkward \
        port:py${python.version}-scikit-hep-boost-histogram \
        port:py${python.version}-scikit-hep-hist \
        port:py${python.version}-numpy \
        port:py${python.version}-hatchling \
        port:py${python.version}-hatch-vcs \
        port:lz4 \
        port:xxhashlib \
        port:xrootd \
        port:zstd
}

# Exclude pre-release candidates
github.livecheck.regex {([0-9.]+)}
