# $Id: Portfile 89952 2012-02-16 20:17:11Z singingwolfboy@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-mock-devel
set real_name       mock
replaced_by         py${python.version}-mock
version             0.8.0beta4
revision            1
python.versions     24 25 26 27 31 32
categories-append   devel
platforms           darwin
license             BSD
maintainers         nomaintainer
description         A Python Mocking and Patching Library for Testing
long_description  \
    mock is a Python module that provides a core Mock class. It removes the \
    need to create a host of stubs throughout your test suite. After \
    performing an action, you can make assertions about which methods / \
    attributes were used and arguments they were called with. You can also \
    specify return values and set needed attributes in the normal way.

homepage            http://www.voidspace.org.uk/python/mock/
master_sites        http://www.voidspace.org.uk/downloads/
distname            ${real_name}-${version}
checksums           rmd160  569cb2388fd17688b75c4c681f3fa1a635cd03e2 \
                    sha256  6dc5c46e141493c75d093bbf6dd6d0f6d4f96aaa522b9f906b61fbaf56a54602

distfiles
livecheck.type      none
pre-configure {
    ui_error "Please do not install this port since it has been replaced by 'py${python.version}-mock'."
    return -code error
}

