blob: 846af1cf633e58253c90d746b502cdf8fc4444f3 (
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
|
pkgname=python-pytest-random-order
_pkgname=pytest_random_order
pkgver=1.2.0
pkgrel=2
pkgdesc="Randomise the order in which pytest tests are run with some control over the randomness"
arch=(any)
url="https://github.com/jbasko/pytest-random-order"
license=(MIT)
depends=(python python-pytest)
makedepends=(python-build python-installer python-setuptools-scm)
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('12b2d4ee977ec9922b5e3575afe13c22cbdb06e3d03e550abc43df137b90439a')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
python -m build --wheel --no-isolation
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|