aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-natsort/APKBUILD
blob: 4091c802978e39c49c4fde749d93ac9f31bd5d09 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-natsort
_pkgname=natsort
pkgver=6.2.0
pkgrel=0
pkgdesc="A module for natural sorting"
options="!check" # Locale related tests fail (7 out of 268)
url="https://github.com/SethMMorton/natsort"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-hypothesis py3-pytest-mock"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-natsort" # Backwards compatibility
provides="py-natsort=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

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

sha512sums="a8bfa0182c21e6edfde331545d02a0ebcfef387c6e6785e8197f14acffebbee82bc5bbdb807c9a72cc721861c66c3107dfad61385d244e003c2352d46e019a30  natsort-6.2.0.tar.gz"