# -*- 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-networkx
version             2.4
revision            0
categories-append   science
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 34 35 36 37 38

maintainers         {stromnov @stromnov} openmaintainer

description         NetworkX in a Python package for graph manipulation.

long_description    NetworkX is a Python package for the creation, \
                    manipulation, and study of the structure, dynamics, \
                    and functions of complex networks.

homepage            http://networkx.github.io
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            networkx-${version}

checksums           rmd160  dd24447411f7a8ec05bcad713255109a9ead3dfd \
                    sha256  f8f4ff0b6f96e4f9b16af6b84622597b5334bf9cae8cf9b2e42e7985d5c95c64 \
                    size    1462338

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

    if {${python.version} < 35} {
        version             2.2
        revision            0
        distname            ${python.rootname}-${version}
        use_zip             yes
        checksums           rmd160  255c9146174fb6aa67378001648a00335b4f2392 \
                            sha256  45e56f7ab6fe81652fb4bc9f44faddb0e9025f469f602df14e3b2551c2ea5c8b \
                            size    1700336
    }

    livecheck.type      none
}