# -*- 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             0.9.1
platforms           darwin
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
master_sites        pypi:n/${python.rootname}/
distname            ${python.rootname}-${version}

checksums           rmd160  14a0bddfb0cf0d9810b92055d7b3c680830132e3 \
                    sha256  e08f8ee92933e324ff347771da15e498dbf0bc6295ed15003872b34654a0a627 \
                    size    27583

python.versions     27 34 35 36 37

if {${name} ne ${subport}} {
    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}-nose
    test.run            yes
    test.cmd            nosetests-${python.branch}
    test.target

    livecheck.type      none
} else {
    livecheck.type      pypi
}