blob: 9a6e52b7cece064b783fd3c148af2f78643c9be5 (
plain)
1 # Description: Mocking and Patching Library for Testing
2 # URL: https://github.com/testing-cabal/mock/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python3-pbr python3-six
5
6 name=python3-mock
7 version=4.0.3
8 release=1
9 source=(https://github.com/testing-cabal/mock/archive/$version/$name-$version.tar.gz)
10
11 build() {
12 cd mock-$version
13 sed -i 's/unittest2/unittest/g' mock/tests/*.py
14 /usr/bin/python3 setup.py build
15 /usr/bin/python3 setup.py install --root=$PKG --optimize=1
16 }
|