summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba734a1eb04226d5fe0d54944ce985e1713d63ca (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
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>

_name=pytest-shard
pkgname=python-$_name
pkgver=0.1.2
pkgrel=1
pkgdesc='Shard tests to support parallelism across multiple machines.'
arch=(any)
url='https://github.com/AdamGleave/pytest-shard'
license=(MIT)
depends=('python>=3.6' python-pytest)
makedepends=(python-build python-installer python-setuptools python-wheel)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
        "https://github.com/AdamGleave/pytest-shard/blob/master/LICENSE")
b2sums=('93116de01aa919697e7ba142b8955eb3ea3926e193b24c0241fdfa46c21bba9b8b556427e4a661dce4158ead855e25cce51a9fcb1bf6402364bff60b3dc1e2db'
        '6bb69c3f9ab81aab6ca0dc35f0aaa70d37eadc098857b9012a2f03bdb67b7fc785137dfe2badb62d87c8c604d5dc2f01a1241459cc34a036cc027ee16e47fc6c')

build() {
    cd $_name-$pkgver
    python -m build --wheel --no-isolation
}

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