# Template file for 'python3-natsort'
pkgname=python3-natsort
version=8.4.0
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-pytest-mock python3-hypothesis"
short_desc="Simple yet flexible natural sorting in Python3"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="MIT"
homepage="https://github.com/SethMMorton/natsort"
distfiles="${PYPI_SITE}/n/natsort/natsort-${version}.tar.gz"
checksum=45312c4a0e5507593da193dedd04abb1469253b601ecaf63445ad80f0a1ea581
conflicts="python-natsort>=0"

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	# tests fail on musl
	make_check_args="
	 --deselect tests/test_input_string_transform_factory.py::test_input_string_transform_factory_cleans_thousands
	 --deselect tests/test_input_string_transform_factory.py::test_input_string_transform_factory_handles_us_locale
	 --deselect tests/test_input_string_transform_factory.py::test_input_string_transform_factory_handles_german_locale
	 --deselect tests/test_natsorted.py::test_natsorted_can_sort_locale_specific_numbers_en
	 --deselect tests/test_natsorted.py::test_natsorted_can_sort_locale_specific_numbers_de
	 --deselect tests/test_natsorted.py::test_natsorted_handles_mixed_types_with_locale"
fi

post_install() {
	vlicense LICENSE
}
