# -*- 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-GridDataFormats
version             0.5.0
revision            0
categories-append   science
platforms           darwin
license             LGPL-3
supported_archs     noarch

python.versions     27 36 37

maintainers         {gmail.com:giovanni.bussi @GiovanniBussi} openmaintainer

description         GridDataFormats provides the Python package 'gridData'.
long_description    ${description} \
                    It contains a class ('Grid') to handle data on a regular grid --- basically NumPy n-dimensional arrays. \
                    It supports reading from and writing to some common formats (such as OpenDX).

homepage            https://github.com/MDAnalysis/GridDataFormats
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  a45b39ba77e5bd7dc2399111c27f83e9b1b14fb1 \
                    sha256  f317ed60708de22d1b2a76ce89a00f722d903291b1055ff1018d441870c39d69 \
                    size    1982315

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    depends_lib-append      port:py${python.version}-numpy \
                            port:py${python.version}-scipy \
                            port:py${python.version}-six
    depends_test-append     port:py${python.version}-pytest
    test.run                yes
    test.cmd                py.test-${python.branch}
    test.target
    livecheck.type          none
}