upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-mockito / trunk / PKGBUILD
blob832617caf475be0839b4f994ce4364122c0c2ac5
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
3 # Contributor: Thomas S Hatch <thatch45@gmail.com>
5 pkgname=python-mockito
6 pkgver=1.4.0
7 pkgrel=2
8 pkgdesc='Spying framework'
9 arch=('any')
10 url='https://github.com/kaste/mockito-python'
11 license=('MIT')
12 depends=('python')
13 makedepends=('python-pytest' 'python-setuptools')
14 checkdepends=('python-numpy')
15 source=("$pkgname-$pkgver.tar.gz::https://github.com/kaste/mockito-python/archive/$pkgver.tar.gz")
16 sha512sums=('053feb0353d987622d7ccbeceb47da208080ef68c77ba3885560c06abb859307bc065bffb00280f70d4941b364db39f9a1e9c389b4206c09f1aae85ebef3c940')
18 build() {
19   cd mockito-python-$pkgver
20   python setup.py build
23 check() {
24   cd mockito-python-$pkgver
25   pytest --ignore=build
28 package() {
29   cd mockito-python-$pkgver
30   python setup.py install --root="$pkgdir" -O1