summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 796081a6072d1c41ab7034ebcc59f7442cfbb2be (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
# Maintainer: Alex Forencich <alex@alexforencich.com>
pkgname=python-pytest-split
pkgver=0.1.5
pkgrel=1
pkgdesc="Pytest plugin which splits the test suite based on test execution time."
arch=('any')
url="https://github.com/jerry-git/pytest-split"
license=('MIT')
depends=('python-pytest')
makedepends=('python-setuptools-scm')

_name=${pkgname#python-}
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('bf0163aafe5686e917a7f043567af96c50fabfe1ba0aa3be0f1b65556e09aa3c')

build() {
    cd "$srcdir/pytest-split-$pkgver"
    python setup.py build
}

package() {
    cd "$srcdir/pytest-split-$pkgver"
    python setup.py install --skip-build --prefix=/usr --root="$pkgdir/" --optimize=1
    install -m 644 -D ./LICENCE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENCE
}