summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1fbf796e0475c0e6af40cd6cce40c7ad2a6e863 (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
# PKGBUILD generated by pipman
# Python package author: Stefan Marsiske <s@ctrlc.hu>
# Maintainer: Hauke Rehfeld <aur.archlinux.org@haukerehfeld.de>
_name="pysodium"
pkgname="python-${_name}"
pkgver=0.7.18
_pkgsubdir="${_name}-${pkgver}"
pkgrel=1
pkgdesc="python libsodium wrapper"
arch=(any)
url="https://github.com/stef/pysodium"
license=(BSD)
makedepends=("python-build" "python-installer" "python-setuptools" "python-wheel")
depends=("libsodium" "python")
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_pkgsubdir}.tar.gz")
sha256sums=('781ada024456ac74c411193b82d94018c85c94130ea01a22dbec48b8ff458b07')

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

package() {
  cd "$_pkgsubdir"
  python -m installer --destdir="$pkgdir" dist/*.whl

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

check(){
  cd "$srcdir/$_pkgsubdir"
  python -m test.test_pysodium
}