mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 02:00:06 +02:00
Add recipe for buildbot_slave and all its dependencies.
* add buildbot_slave-0.8.8.recipe * add python_twisted-13.2.0.recipe * add python_zope.interface-4.1.1.recipe * add python_mock-1.0.1.recipe
This commit is contained in:
51
dev-python/mock/python_mock-1.0.1.recipe
Normal file
51
dev-python/mock/python_mock-1.0.1.recipe
Normal file
@@ -0,0 +1,51 @@
|
||||
SUMMARY="A library for testing in Python"
|
||||
DESCRIPTION="
|
||||
Mock allows you to replace parts of your system under test with mock objects \
|
||||
and make assertions about how they have been used.
|
||||
|
||||
Mock provides a core 'MagicMock' class removing 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.
|
||||
|
||||
The mock module also provides utility functions / objects to assist with \
|
||||
testing, particularly monkey patching.
|
||||
"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/mock"
|
||||
SRC_URI="https://pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz"
|
||||
CHECKSUM_SHA256="b839dd2d9c117c701430c149956918a423a9863b48b09c90e30a6013e7d2f44f"
|
||||
LICENSE="BSD (2-clause)"
|
||||
COPYRIGHT="2003-2012, Michael Foord"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
SOURCE_DIR="mock-$portVersion"
|
||||
|
||||
PROVIDES="
|
||||
python_mock = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
cmd:python
|
||||
"
|
||||
|
||||
BUILD_REQUIRES=""
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:python
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python/bin/python setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python/bin/python setup.py install \
|
||||
--prefix=$prefix
|
||||
}
|
||||
Reference in New Issue
Block a user