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

homepage                https://github.com/lmfit/uncertainties

checksums               rmd160  9831fbae06acb7c88a9629dfbbf9802c3758231e \
                        sha256  52ea797bffa4947be6b0bdbcf4b3886cd32960506e2d80102e02bc27f5c4bb69 \
                        size    162075

python.versions         310 311 312 313 314

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

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

    test.run            yes

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