# -*- 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.8.8
revision            0
categories-append   science
license             BSD
supported_archs     noarch

python.versions     27 37 38 39 310 311
python.pep517       yes

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            https://networkx.github.io

checksums           rmd160  b5155f2a59b27f5d1f891496626037d016cefcfa \
                    sha256  230d388117af870fce5647a3c52401fcf753e94720e6ea6b4197a5355648885e \
                    size    1960828

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

    if {${python.version} eq 27} {
        version             2.2
        revision            0
        distname            ${python.rootname}-${version}
        use_zip             yes
        checksums           rmd160  255c9146174fb6aa67378001648a00335b4f2392 \
                            sha256  45e56f7ab6fe81652fb4bc9f44faddb0e9025f469f602df14e3b2551c2ea5c8b \
                            size    1700336
        depends_lib-append  port:py${python.version}-decorator
        python.pep517       no
    } elseif {${python.version} eq 37} {
        version             2.6.3
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  6e7feda9ad8465c77eef36748daec00c6414130d \
                            sha256  c0946ed31d71f1b732b5aaa6da5a0388a345019af232ce2f49c766e2d6795c51 \
                            size    1844862
        python.pep517       no
    }

    livecheck.type      none
}
