# -*- 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-wntr
version             1.2.0
revision            0

categories-append   science
license             BSD
maintainers         {gmail.com:jjstickel @jjstickel} openmaintainer

description         The Water Network Tool for Resilience (WNTR)
long_description    {*}${description} is an EPANET compatible Python package designed \
                    to simulate and analyze resilience of water distribution networks.

checksums           rmd160  7df6c1b784995e5eccc7ed13bc9ce3ac23027265 \
                    sha256  05f9f491c3e2eb2f3735c108c69f1e1509cb0af9a4180ccf2ce4295e9c3ae3f2 \
                    size    3185851

python.versions     312

if {${subport} ne ${name}} {
    depends_lib-append \
                    port:py${python.version}-matplotlib \
                    port:py${python.version}-networkx \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pandas \
                    port:py${python.version}-scipy

    post-destroot {
        # remove Linux and Windows versions of epanet libraries
        delete ${destroot}${python.pkgd}/wntr/epanet/Linux
        delete ${destroot}${python.pkgd}/wntr/epanet/Windows
    }
}
