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

# https://github.com/pytest-dev/pytest-runner#deprecation-notice
pkgname=python-pytest-runner
pkgver=6.0.1
_commit=9d13da8bd36ecd9634629b492315cb28eff44183
pkgrel=2
pkgdesc="Invoke py.test as distutils command with dependency resolution"
arch=('any')
license=('MIT')
url="https://github.com/pytest-dev/pytest-runner"
depends=('python-pytest' 'python-setuptools')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
#checkdepends=('python-pytest-virtualenv' 'python-pytest-enabler')
source=("git+https://github.com/pytest-dev/pytest-runner.git#commit=$_commit")
sha512sums=('SKIP')

build() {
  cd pytest-runner
  python -m build --wheel --no-isolation
}

# Tries to import barbazquux2
#check() {
#  cd pytest-runner
#  PYTHONPATH="$PWD" pytest
#}

package() {
  cd pytest-runner
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}