Add python-mock package

This commit is contained in:
Calin Crisan 2019-01-21 23:21:28 +02:00
parent 098fd38049
commit 424b1511c8
4 changed files with 24 additions and 0 deletions

View File

@ -864,6 +864,7 @@ menu "External python modules"
source "package/python-mbstrdecoder/Config.in"
source "package/python-meld3/Config.in"
source "package/python-mistune/Config.in"
source "package/python-mock/Config.in"
source "package/python-more-itertools/Config.in"
source "package/python-msgpack/Config.in"
source "package/python-multidict/Config.in"

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_PYTHON_MOCK
bool "python-mock"
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
help
mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.
https://github.com/testing-cabal/mock

View File

@ -0,0 +1,2 @@
sha256 b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba mock-2.0.0.tar.gz

View File

@ -0,0 +1,14 @@
################################################################################
#
# python-mock
#
################################################################################
PYTHON_MOCK_VERSION = 2.0.0
PYTHON_MOCK_SOURCE = mock-$(PYTHON_MOCK_VERSION).tar.gz
PYTHON_MOCK_SITE = https://files.pythonhosted.org/packages/0c/53/014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f
PYTHON_MOCK_SETUP_TYPE = setuptools
PYTHON_MOCK_LICENSE = Apache-2.0
PYTHON_MOCK_LICENSE_FILES = LICENSE.txt
$(eval $(python-package))