diff --git a/srcpkgs/python3-cli_helpers/patches/use-python3-mock-on-tests.patch b/srcpkgs/python3-cli_helpers/patches/use-python3-mock-on-tests.patch new file mode 100644 index 0000000000..1251ccbb94 --- /dev/null +++ b/srcpkgs/python3-cli_helpers/patches/use-python3-mock-on-tests.patch @@ -0,0 +1,13 @@ +diff --git tests/test_config.py tests/test_config.py +index 3cbe211..4d2bc77 100644 +--- tests/test_config.py ++++ tests/test_config.py +@@ -4,7 +4,7 @@ + from __future__ import unicode_literals + import os + +-from mock import MagicMock ++from unittest.mock import MagicMock + import pytest + + from cli_helpers.compat import MAC, text_type, WIN diff --git a/srcpkgs/python3-cli_helpers/template b/srcpkgs/python3-cli_helpers/template new file mode 100644 index 0000000000..52abdbc919 --- /dev/null +++ b/srcpkgs/python3-cli_helpers/template @@ -0,0 +1,26 @@ +# Template file for 'python3-cli_helpers' +pkgname=python3-cli_helpers +version=1.2.0 +revision=1 +archs=noarch +wrksrc="cli_helpers-${version}" +build_style=python3-module +pycompile_module="cli_helpers" +hostmakedepends="python3-setuptools" +depends="python3-configobj python3-tabulate python3-terminaltables + python3-wcwidth" +checkdepends="python3-pytest ${depends}" +short_desc="Python helpers for building command-line apps" +maintainer="Aluísio Augusto Silva Gonçalves " +license="BSD-3-Clause" +homepage="https://github.com/dbcli/cli_helpers" +distfiles="${PYPI_SITE}/c/cli_helpers/cli_helpers-${version}.tar.gz" +checksum=d211192b4d5a61de0020c516213ba67bbf1662ccd8c0624e6696dedb1a9d3e5d + +do_check() { + python3 -m pytest +} + +post_install() { + vlicense LICENSE +}