blob: 28047234aa3da6bd8b659d7e8a7da0731cf5867b (
plain) (
tree)
|
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=py3-mock
_pkgname=${pkgname#py3-}
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.0.0
pkgrel=0
pkgdesc="A Python Mocking and Patching Library for Testing"
url="https://github.com/testing-cabal/mock"
arch="noarch"
options="!check" # tries to import mock-2, uses nose
license="BSD-2-Clause"
depends="python3 py3-pbr py3-six"
makedepends="python3-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="a08007651b749d2843b94f5045d74c122958888290aea21930455538a854e6b04c07115e21d82edde996154bf597d7a8784a2f4213cbabc49a98dec22dd92238 py3-mock-2.0.0.tar.gz"
|