summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c171166fd57fcfad0bf0bb9f2fe9f2729dddc42 (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
41
42
43
44
45
46
# $Id$
# Maintainer: Grey Christoforo <grey at christoforo dot net>

pkgname=python-typish
pkgver=1.9.3
pkgrel=2
pkgdesc='Functions for thorough checks on types'
arch=(x86_64)
url="https://github.com/ramonhagenaars/typish"
license=(MIT)
depends=(python)
makedepends=(python-setuptools)
checkdepends=(
python-pycodestyle
python-pylint
mypy
python-pytest
python-coverage
)

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ramonhagenaars/typish/archive/v${pkgver}.tar.gz")
sha512sums=('baad9d2229ac289c4eb1d6e64bac0313efd4680f42a95270e0c1141d511392e6a95a5fea767943ddf432f5f0d48d95a05bbf26e06df188079ac177d321e4fa5c')

prepare(){
  msg2 "${MAKEFLAGS}"
}

build() {
  cd typish-${pkgver}
  python setup.py build
}

check(){
  cd typish-${pkgver}
  #python setup.py test
  #coverage run setup.py test
}

package() {
  cd typish-${pkgver}
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build

  # don't package test dir
  _i_dir="${pkgdir}/$(python -c 'import sys; print(sys.path[-1])')"
  rm -rf "${_i_dir}/tests"
}