# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-natsort _pkgname=natsort pkgver=7.0.1 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="48bfda8a42b951287d984e38c474b71233d56a578d8bec12e657413b3cdb71dd27103acda8dca359d87efd761e775deff0775a81d8dfa18df24c364921028c2b natsort-7.0.1.tar.gz"