diff --git a/srcpkgs/python3-humanize/patches/use-python3-mock-on-tests.patch b/srcpkgs/python3-humanize/patches/use-python3-mock-on-tests.patch deleted file mode 100644 index 934ac86472c..00000000000 --- a/srcpkgs/python3-humanize/patches/use-python3-mock-on-tests.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git setup.py setup.py -index 327388d..4f59508 100644 ---- setup.py -+++ setup.py -@@ -36,7 +36,6 @@ setup( - include_package_data=True, - zip_safe=False, - test_suite="tests", -- tests_require=['mock'], - install_requires=[ - # -*- Extra requirements: -*- - ], -diff --git tests/time.py tests/time.py -index 7747c87..669d063 100644 ---- tests/time.py -+++ tests/time.py -@@ -3,7 +3,7 @@ - - """Tests for time humanizing.""" - --from mock import patch -+from unittest.mock import patch - - from humanize import time - from datetime import date, datetime, timedelta diff --git a/srcpkgs/python3-humanize/template b/srcpkgs/python3-humanize/template index d1011fb92e9..4718b0657ea 100644 --- a/srcpkgs/python3-humanize/template +++ b/srcpkgs/python3-humanize/template @@ -1,18 +1,18 @@ # Template file for 'python3-humanize' pkgname=python3-humanize -version=0.5.1 -revision=2 +version=1.0.0 +revision=1 archs=noarch wrksrc="humanize-${version}" build_style=python3-module -pycompile_module="humanize" hostmakedepends="python3-setuptools" +checkdepends="python3-pytest python3-freezegun" short_desc="Python humanize utilities" maintainer="Aluísio Augusto Silva Gonçalves " license="MIT" homepage="https://github.com/jmoiron/humanize" -distfiles="https://github.com/jmoiron/humanize/archive/${version}.tar.gz" -checksum=@ce798ec45142598f4eb5a580c1c99b1f10d573c1896afd73e4aa8e216b22608b +distfiles="${PYPI_SITE}/h/humanize/humanize-${version}.tar.gz" +checksum=38ace9b66bcaeb7f8186b9dbf0b3448e00148e5b4fbaf726f96c789e52c3e741 post_install() { vlicense LICENCE