# $Id: Portfile 107050 2013-06-16 21:28:51Z jmr@macports.org $

PortSystem              1.0
PortGroup               python 1.0

name                    py-networkx
version                 1.7
python.versions         26 27 31 32
categories-append       science
license                 BSD
maintainers             nomaintainer
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.

platforms               darwin
supported_archs         noarch

homepage                http://networkx.lanl.gov/
master_sites            http://pypi.python.org/packages/source/n/networkx/ \
                        https://networkx.lanl.gov/download/networkx/
distname                networkx-${version}

checksums               md5 1a73da9d571a206aa40f6ef69254f7b4 \
                        rmd160 90c35abf42a0ec68b3ece14cac02f4b47b6c0a20 \
                        sha256 eb62de98a0fa74aec9c31fffbac8089a703c6413601678f3fb1a0016bad2bdc1

if {$subport != $name} {
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "networkx-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
