# -*- 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-uncertainties
version                 3.2.3
revision                0

categories-append       math
supported_archs         noarch
platforms               {darwin any}
license                 BSD
maintainers             {reneeotten @reneeotten} openmaintainer

description             The Python uncertainties package
long_description        The uncertainties package transparently handles \
                        calculations for numbers with uncertainties.

checksums               rmd160  696b80e9714f2b79483538174fe7583b9c011cdc \
                        sha256  76a5653e686f617a42922d546a239e9efce72e6b35411b7750a1d12dcba03031 \
                        size    160492

python.versions         39 310 311 312 313 314

if {${name} ne ${subport}} {
    patchfiles-append   341.diff

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

    test.run            yes
    depends_test-append port:py${python.version}-numpy

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE.txt \
            CHANGES.rst ${destroot}${docdir}
    }
}
