From cc2a3a4238f49a6c0e0e720901fcec4d75b36e5b Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Sun, 4 Feb 2024 04:42:39 +0300 Subject: [PATCH] python3-natsort: update to 8.4.0 --- srcpkgs/python3-natsort/template | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python3-natsort/template b/srcpkgs/python3-natsort/template index a8d7b0eec1feb..18f9d8755f1fc 100644 --- a/srcpkgs/python3-natsort/template +++ b/srcpkgs/python3-natsort/template @@ -1,22 +1,29 @@ # Template file for 'python3-natsort' pkgname=python3-natsort -version=6.0.0 -revision=7 +version=8.4.0 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3-setuptools" +depends="python3" checkdepends="python3-pytest-mock python3-hypothesis" short_desc="Simple yet flexible natural sorting in Python3" maintainer="Michal Koutenský " license="MIT" homepage="https://github.com/SethMMorton/natsort" distfiles="${PYPI_SITE}/n/natsort/natsort-${version}.tar.gz" -checksum=ff3effb5618232866de8d26e5af4081a4daa9bb0dfed49ac65170e28e45f2776 +checksum=45312c4a0e5507593da193dedd04abb1469253b601ecaf63445ad80f0a1ea581 conflicts="python-natsort>=0" -do_check() { - python3 -m pytest -} +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