# -*- 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-traittypes
version             0.2.3
revision            0

categories-append   science
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {petr @petrrr} openmaintainer

description         Custom trait types for scientific computing
long_description    \
    Provide a reference implementation of trait types for common data \
    structures used in NumPy, SciPy, Pandas and friends, which are out of the \
    scope of the main traitlets project but are a common requirement to build \
    applications with traitlets in combination with the scipy stack.

homepage            https://github.com/jupyter-widgets/traittypes

checksums           rmd160  9a490a333730dc974bed45e40099ced85aadf3d4 \
                    sha256  212feed38d566d772648768b78d3347c148ef23915b91c02078188e631316c86 \
                    size    16003

python.versions     310 311 312 313 314

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

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