# -*- 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-numpydoc
version             1.11.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Sphinx extension to support docstrings in Numpy format
long_description    Numpydoc inserts a hook into Sphinx’s autodoc \
                    that converts docstrings following the Numpy/Scipy format \
                    to a form palatable to Sphinx.

homepage            https://github.com/numpy/numpydoc

checksums           rmd160  d4f1c312649fd02753085cbd28f98acbf7f9a1d7 \
                    sha256  26db0adaac8087e98da05c86b11198defd962aef7c21f4dffd2703c8c6eb4187 \
                    size    101575

python.versions     310 311 312 313 314

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

    depends_run-append  port:py${python.version}-sphinx

    if {${python.version} < 311} {
        depends_run-append \
                        port:py${python.version}-tomli
    }

    test.run            yes
}
