# -*- 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-pytools
version             2023.1.1
revision            0

platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         A collection of tools for Python
long_description    Pytools is a big bag of things that are 'missing' \
                    from the Python standard library.

homepage            https://documen.tician.de/pytools/

checksums           rmd160  9a4ba80461879a8111e14927e6d1b8c5d91fff53 \
                    sha256  80637873d206f6bcedf7cdb46ad93e868acb4ea2256db052dfcca872bdd0321f \
                    size    75472

python.versions     310 311

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-appdirs \
                        port:py${python.version}-decorator \
                        port:py${python.version}-numpy \
                        port:py${python.version}-six

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

    test.run            yes
}
