# -*- 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.1.0
revision            0

platforms           darwin
supported_archs     noarch
license             BSD
maintainers         {mojca @mojca} 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  3c2db859114cd75285f3b619a39edabe793d53df \
                    sha256  c36fd6cb7ffdc9b4e165a43f67bf6271a7b024d0bb6b00ac468c9e2bfc76448e \
                    size    609482

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     0.9.2
        checksums   rmd160  de791bad34fe958841e1df7101931c1149d3453f \
                    sha256  9140669e6b915f42c6ce7fef704483ba9b0aaa9ac8e425ea89c76fe40478f642 \
                    size    27555
    }

    depends_build-append \
                        port:py${python.version}-setuptools \
                        port:py${python.version}-sphinx \
                        port:py${python.version}-jinja2

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

    test.run            yes
    test.cmd            py.test-${python.branch}
    test.target
    test.env            PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type      none
}
