summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5f4598b2b7a1c52a20389685069f7af461651ab (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
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-nose-cover3
pkgver=0.1.0
pkgrel=11
pkgdesc="Coverage 3.x support for Nose"
arch=(any)
url="https://github.com/ask/nosecover3"
license=('LGPL')
options=('!emptydirs')
depends=('python-nose' 'python-coverage')
makedepends=('python-setuptools' 'git')
source=("git+https://github.com/ask/nosecover3.git#tag=v$pkgver")
sha512sums=('SKIP')

prepare() {
  cd nosecover3
  sed -i 's/extra.update(use_2to3=True)/pass/' setup.py
}

build() {
  cd nosecover3
  2to3 -wn nosecover3
  python setup.py build
}

package() {
  cd nosecover3
  python setup.py install --root="${pkgdir}" --optimize=1
}