aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pyrsistent/APKBUILD
blob: b6d7a0161e1367ce18335f2ec21a368882bca3f9 (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-pyrsistent
pkgver=0.17.3
pkgrel=0
pkgdesc="Persistent/Functional/Immutable data structures"
url="https://github.com/tobgu/pyrsistent"
arch="all"
license="MIT"
depends="py3-six"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-hypothesis py3-pytest py3-pytest-runner"
source="pyrsistent-$pkgver.tar.gz::https://github.com/tobgu/pyrsistent/archive/v$pkgver.tar.gz"
builddir="$srcdir/pyrsistent-$pkgver"
provides="py-pyrsistent=$pkgver-r$pkgrel"

prepare() {
	default_prepare
	sed -i 's/<5//g' setup.py
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="6e6129666801dd872938ed02b043e7b3447f400e261906dedf474872145c603a20ea6fada72eba320ab016064098032a62a9918db49d7f344d52f158b5914f47  pyrsistent-0.17.3.tar.gz"