summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b365df7b03fe829aa4287f77d8c60d7c600254c (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: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Eli Schwartz <eschwartz@archlinux.org>

pkgname='python2-pytest-expect'
_name="${pkgname#python2-}"
pkgver=1.1.0
pkgrel=8
pkgdesc='A Python 2 pytest plugin to store test expectations and mark tests based on them'
arch=('any')
url="https://pypi.org/project/${_name}/${pkgver}/"
license=('MIT')
depends=('python2>=2.6')
makedepends=('python2-setuptools')
_tarname="${_name}-${pkgver}"
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_tarname}.tar.gz"
        'LICENSE')
sha256sums=('36b4462704450798197d090809a05f4e13649d9cba9acdc557ce9517da1fd847'
            '49b00bf423506a1ac5c1c47df6b6458c01b5e785d9a91d4f57e78fe5d344f1b8')

build() {
  cd "${_tarname}"
  python2 setup.py build
}

package() {
  depends+=(
    'python2-pytest'
    'python2-u-msgpack'
  )

  cd "${_tarname}"
  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm 644 '../LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}