# -*- 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.1
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  3c67f0ef27918bcb8fc272299b64b3080edf33dd \
                    sha256  be6fa26294733e7489822ded4ae25da5b4824a8a7a0e0c2dccfde596e3489bd6 \
                    size    13544

python.versions     39 310 311

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

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