diff options
author | Tim Biermann <tbier@posteo.de> | 2022-03-27 16:24:49 +0200 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2022-03-27 16:25:32 +0200 |
commit | 0c6918eb78222b7b873bb9fc7d42c5b5c74966a7 (patch) | |
tree | 47cb09d0fc71e5a5dac3ec0d111f1686e8efe93b /python3-mock/Pkgfile | |
parent | bba433f9b6783fed92460e80478eac4990344f69 (diff) | |
download | contrib-0c6918eb78222b7b873bb9fc7d42c5b5c74966a7.tar.gz contrib-0c6918eb78222b7b873bb9fc7d42c5b5c74966a7.tar.xz |
python3-mock: initial commit, version
Diffstat (limited to 'python3-mock/Pkgfile')
-rw-r--r-- | python3-mock/Pkgfile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/python3-mock/Pkgfile b/python3-mock/Pkgfile new file mode 100644 index 000000000..9a6e52b7c --- /dev/null +++ b/python3-mock/Pkgfile @@ -0,0 +1,16 @@ +# Description: Mocking and Patching Library for Testing +# URL: https://github.com/testing-cabal/mock/ +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: python3-pbr python3-six + +name=python3-mock +version=4.0.3 +release=1 +source=(https://github.com/testing-cabal/mock/archive/$version/$name-$version.tar.gz) + +build() { + cd mock-$version + sed -i 's/unittest2/unittest/g' mock/tests/*.py + /usr/bin/python3 setup.py build + /usr/bin/python3 setup.py install --root=$PKG --optimize=1 +} |