summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33bbf785af1382571cf9cdd18d2a3c74ef3259ca (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Clint Valentine <valentine.clint@gmail.com>

pkgname=python-serializable
_pkg="${pkgname#python-}"
pkgver=0.2.1
pkgrel=3
pkgdesc="Base class with serialization helpers for user-defined Python objects"
arch=('any')
url="https://pypi.org/project/serializable"
license=('Apache')
depends=('python-simplejson' 'python-six' 'python-typechecks')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
checkdepends=('python-nose')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkg::1}/$_pkg/$_pkg-$pkgver.tar.gz")
sha256sums=('ec604e5df0c1236c06d190043a407495c4412dd6b6fd3b45a8514518173ed961')

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

check() {
	cd "$_pkg-$pkgver"
	nosetests
}

package() {
	cd "$_pkg-$pkgver"
	PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl
}