blob: c908d3a1e00f0091bb7096198caa3eb4caed93eb (
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
|
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
pkgname=python-chai
pkgver=1.1.2
pkgrel=8
pkgdesc="Easy to use mocking, stubbing and spying framework."
arch=('any')
url="https://github.com/agoragames/chai"
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
# checkdepends=('python-nose')
source=("https://files.pythonhosted.org/packages/source/c/chai/chai-$pkgver.tar.gz")
sha256sums=('ff8d2b6855f660cd23cd5ec79bd10264d39f24f6235773331b48e7fcd637d6cc')
build() {
cd chai-$pkgver
python setup.py build
}
check() {
cd chai-$pkgver
# Chai's tests are now too old to run properly. This package is still useful
# for eg. when building drkonqi with kdesrc-build, so keep it installable by
# not running the tests.
# nosetests
}
package() {
cd chai-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
|