summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82da7160765bb3b768870335d63ef8a8c1c0dc07 (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
34
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Felix Yan <felixonmars@archlinux.org>

pkgname=python-whatever
pkgver=0.7
_commit=7f2cab8e8dfe50e0696b149c68b1c3fff7b70094
pkgrel=5
pkgdesc='Easy way to make anonymous functions by partial application of operators'
arch=(any)
license=(BSD)
url='https://github.com/Suor/whatever'
depends=(python)
makedepends=(git
             python-{build,installer,wheel}
             python-setuptools)
checkdepends=(python-pytest)
source=("git+https://github.com/Suor/whatever.git#commit=$_commit")
sha512sums=('SKIP')

build() {
	cd whatever
	python -m build -wn
}

check() {
	cd whatever
	pytest
}

package() {
	cd whatever
	python -m installer -d "$pkgdir" dist/*.whl
	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}