# -*- 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
# $Id: Portfile 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pytest
version             2.3.4
revision            0
categories-append   devel
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     25 26 27 32 33

maintainers         stromnov openmaintainer

description         py.test: simple powerful testing with Python

long_description    The py.test` testing tool makes it easy to write small \
                    tests, yet scales to support complex functional testing.

homepage            http://pytest.org
master_sites        http://pypi.python.org/packages/source/p/pytest/

checksums           rmd160  ed8620ab4bfe8c3b85413d7da2e7651a89ae04f2 \
                    sha256  5616f744a311c5f5fbb44943aaa41c32df70ba132159a0a9fb6c999060d7645c

distname            pytest-${version}

use_zip             yes

if {$subport != $name} {
    depends_build       port:py${python.version}-setuptools

    patchfiles          patch-setup.py.diff

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "pytest-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
