summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-mock/PKGBUILD
blob: 63fd848911edb095f7b67e7cc47e33a84efb252d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $Id$
# Maintainer: jelle van der Waa <jelle@vdwaa.nl>
# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>

pkgbase=python-mock
pkgname=(python2-mock)
pkgver=1.0.1
pkgrel=3
pkgdesc='Mocking and Patching Library for Testing'
url='http://www.voidspace.org.uk/python/mock/'
makedepends=('python2')
license=('BSD')
arch=('any')
source=("http://pypi.python.org/packages/source/m/mock/mock-$pkgver.tar.gz")
md5sums=('c3971991738caa55ec7c356bbc154ee2')

build() {
  cd "$srcdir"
  cp -rf "mock-$pkgver" "mock2-$pkgver"

#  cd "$srcdir/mock-$pkgver"
#  python3 setup.py build

  cd "$srcdir/mock2-$pkgver"
  python2 setup.py build
}

#package_python-mock() {
#depends=('python')
#  cd "$srcdir/mock-$pkgver"
#  python3 setup.py install --optimize=1 --root="$pkgdir"
#  install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
#}

package_python2-mock() {
depends=('python2')
  cd "$srcdir/mock2-$pkgver"
  python2 setup.py install --optimize=1 --root="$pkgdir"
  install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}