diff options
author | icp <pangolin@vivaldi.net> | 2024-04-08 20:20:51 +0000 |
---|---|---|
committer | cinerea0 <49368915+cinerea0@users.noreply.github.com> | 2024-04-12 22:57:04 +0000 |
commit | d24740e4ca756c6dc44e848ca64962d8aa90c877 (patch) | |
tree | 685e2924cc588a2aea58c296862551d11b2f48f2 | |
parent | f8fae31ec5322e5ffd42e71d5cd9ea39cb38786f (diff) | |
download | void-packages-d24740e4ca756c6dc44e848ca64962d8aa90c877.tar void-packages-d24740e4ca756c6dc44e848ca64962d8aa90c877.tar.gz void-packages-d24740e4ca756c6dc44e848ca64962d8aa90c877.tar.bz2 void-packages-d24740e4ca756c6dc44e848ca64962d8aa90c877.tar.lz void-packages-d24740e4ca756c6dc44e848ca64962d8aa90c877.tar.xz void-packages-d24740e4ca756c6dc44e848ca64962d8aa90c877.tar.zst void-packages-d24740e4ca756c6dc44e848ca64962d8aa90c877.zip |
python3-inflect: update to 7.2.0.
-rw-r--r-- | srcpkgs/python3-inflect/patches/fix-test.patch | 28 | ||||
-rw-r--r-- | srcpkgs/python3-inflect/template | 6 |
2 files changed, 3 insertions, 31 deletions
diff --git a/srcpkgs/python3-inflect/patches/fix-test.patch b/srcpkgs/python3-inflect/patches/fix-test.patch deleted file mode 100644 index 45770502cc3..00000000000 --- a/srcpkgs/python3-inflect/patches/fix-test.patch +++ /dev/null @@ -1,28 +0,0 @@ -From f6177e1b30c7cda6e73b6a0aa7437fe5a16fd0aa Mon Sep 17 00:00:00 2001 -From: Jaremy Hatler <hatler.jaremy@gmail.com> -Date: Sat, 23 Dec 2023 21:37:41 -0500 -Subject: [PATCH] fix: compare validation now expects singular noun - -On pydantic-code >= 2.12, the validation error messages use the singular -of the word "character" when the number 1 is specified in a condition. -This breaks the engine.compare validation, which expected the plural. - -Refs: #204 -Signed-off-by: Jaremy Hatler <hatler.jaremy@gmail.com> ---- - inflect/__init__.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/inflect/__init__.py b/inflect/__init__.py -index ccef776..fcb3d01 100644 ---- a/inflect/__init__.py -+++ b/inflect/__init__.py -@@ -2466,7 +2466,7 @@ def compare(self, word1: Word, word2: Word) -> Union[str, bool]: - ... - pydantic...ValidationError: ... - ... -- ...at least 1 characters... -+ ...at least 1 character... - """ - norms = self.plural_noun, self.plural_verb, self.plural_adj - results = (self._plequal(word1, word2, norm) for norm in norms) diff --git a/srcpkgs/python3-inflect/template b/srcpkgs/python3-inflect/template index e83b21c359d..215eafae4fd 100644 --- a/srcpkgs/python3-inflect/template +++ b/srcpkgs/python3-inflect/template @@ -1,10 +1,10 @@ # Template file for 'python3-inflect' pkgname=python3-inflect -version=7.0.0 +version=7.2.0 revision=1 build_style=python3-pep517 hostmakedepends="python3-wheel python3-setuptools_scm" -depends="python3-pydantic" +depends="python3-more-itertools python3-typeguard python3-typing_extensions" checkdepends="${depends} python3-pytest-xdist" short_desc="Correctly generate plurals, ordinals; convert numbers to words" maintainer="icp <pangolin@vivaldi.net>" @@ -12,7 +12,7 @@ license="MIT" homepage="https://github.com/jaraco/inflect" changelog="https://raw.githubusercontent.com/jaraco/inflect/main/NEWS.rst" distfiles="${PYPI_SITE}/i/inflect/inflect-${version}.tar.gz" -checksum=63da9325ad29da81ec23e055b41225795ab793b4ecb483be5dc1fa363fd4717e +checksum=32feacfacfcae2f22e6fccdea10f0ddf26a638fac434d0dddaafbca0034f3784 make_check_pre="env PY_IGNORE_IMPORTMISMATCH=1" post_install() { |