# -*- 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 117579 2014-03-04 09:25:48Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

python.versions     25 26 27 32 33 34

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  21b8adef451bdea34f5a6532dec3d48058c0274d \
                    sha256  962452611799878616d6df5e7674cc2c356f902ed005dc4dae9d4e79bb8abda4

distname            pytest-${version}

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

    patchfiles          patch-setup.py.diff

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {pytest-(\d+(?:\.\d+)*)\.[tz]}
}
