summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aca6ada7a9e737f79fe7562d8022fe5f842b7ef7 (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
# Maintainer: Evan Edwards <evan@ejedev.com>

pkgname=python-boltons
pkgver=24.1.0
_commit=5aed99eb066f563fbad2231498492df8403a643d
pkgrel=1
pkgdesc="Functionality that should be in the standard library. Like builtins, but Boltons."
url="https://github.com/mahmoud/boltons"
license=('BSD')
arch=('any')
depends=('python')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest')
source=("git+https://github.com/mahmoud/boltons.git#commit=$_commit")
sha512sums=('SKIP')

build() {
  cd boltons
  python setup.py build
}

check() {
  cd boltons
  pytest
}

package() {
  cd boltons
  python setup.py install --root="$pkgdir" --optimize=1

  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}