From de74f7b8dbb509c6bf1a97618dee3958e7108ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alu=C3=ADsio=20Augusto=20Silva=20Gon=C3=A7alves?= Date: Sun, 7 Oct 2018 23:19:15 -0300 Subject: [PATCH] New package: python3-humanize-0.5.1 --- .../patches/use-python3-mock-on-tests.patch | 25 +++++++++++++++++++ srcpkgs/python3-humanize/template | 19 ++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 srcpkgs/python3-humanize/patches/use-python3-mock-on-tests.patch create mode 100644 srcpkgs/python3-humanize/template diff --git a/srcpkgs/python3-humanize/patches/use-python3-mock-on-tests.patch b/srcpkgs/python3-humanize/patches/use-python3-mock-on-tests.patch new file mode 100644 index 00000000000..934ac86472c --- /dev/null +++ b/srcpkgs/python3-humanize/patches/use-python3-mock-on-tests.patch @@ -0,0 +1,25 @@ +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 new file mode 100644 index 00000000000..c82c20fb0f2 --- /dev/null +++ b/srcpkgs/python3-humanize/template @@ -0,0 +1,19 @@ +# Template file for 'python3-humanize' +pkgname=python3-humanize +version=0.5.1 +revision=1 +archs=noarch +wrksrc="humanize-${version}" +build_style=python3-module +pycompile_module="humanize" +hostmakedepends="python3-setuptools" +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 + +post_install() { + vlicense LICENCE +}