New package: python3-humanize-0.5.1

This commit is contained in:
Aluísio Augusto Silva Gonçalves 2018-10-07 23:19:15 -03:00 committed by maxice8
parent 26865beb70
commit de74f7b8db
2 changed files with 44 additions and 0 deletions

View file

@ -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

View file

@ -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 <aluisio@aasg.name>"
license="MIT"
homepage="https://github.com/jmoiron/humanize"
distfiles="https://github.com/jmoiron/humanize/archive/${version}.tar.gz"
checksum=@ce798ec45142598f4eb5a580c1c99b1f10d573c1896afd73e4aa8e216b22608b
post_install() {
vlicense LICENCE
}