summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a80f5115a2db5a1f333edbfa863b1830fecca998 (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: l-koehler <lorenz.koehler@posteo.de>
# Contributor: piernov <piernov@piernov.org>

pkgname=python-pep517
pkgver=0.13.1
pkgrel=2
pkgdesc='Wrappers to build Python packages using PEP 517 hooks'
arch=('any')
url='https://github.com/pypa/pep517'
license=('MIT')
depends=('python' 'python-pip' 'python-tomli' 'python-importlib-metadata' 'python-zipp')
makedepends=('python-flit-core' 'python-build' 'python-installer' 'python-setuptools')
checkdepends=('python-pytest' 'python-testpath')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/pep517/pep517-$pkgver.tar.gz")
sha256sums=('1b2fa2ffd3938bb4beffe5d6146cbcb2bda996a5a4da9f31abffd8b24e07b317')

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

check() {
  cd "pep517-$pkgver"
  PYTHONPATH=./src pytest -x --disable-warnings
}

package() {
  export PYTHONHASHSEED=0
  cd "pep517-$pkgver"
  python -m installer --destdir="$pkgdir/" dist/*.whl
  
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}