summaryrefslogtreecommitdiff
path: root/user/py3-sortedcontainers/APKBUILD
blob: bdc80fc6c011e828f3930d0872207bb19dbfb03b (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-sortedcontainers
_pkgname=python-sortedcontainers
pkgver=2.4.0
pkgrel=0
pkgdesc="Python library for sorting collections and containers"
url="http://www.grantjenks.com/docs/sortedcontainers"
license="Apache-2.0"
arch="noarch"
depends="python3"
checkdepends="py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
makedepends="py3-iniconfig"
replaces="py-sortedcontainers" # Backwards compatibility
provides="py-sortedcontainers=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD"/build/lib python3 -m pytest
}

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

sha512sums="f80185c6f95a85cc78f88f6f6cf389eb48be22cf94d5fcd84f3592873f17de37ec7f44c1627b7f02956ac4b4f74ca4febefc47d3c6232f70ee05dbb2449ad770  python-sortedcontainers-2.4.0.tar.gz"