From 56b5efeed48cbf69425c1a006836d762f6b0bc1d 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:30 -0300 Subject: [PATCH] New package: python3-cli_helpers-1.2.0 --- .../patches/use-python3-mock-on-tests.patch | 13 ++++++++++ srcpkgs/python3-cli_helpers/template | 26 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 srcpkgs/python3-cli_helpers/patches/use-python3-mock-on-tests.patch create mode 100644 srcpkgs/python3-cli_helpers/template 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 00000000000..1251ccbb94e --- /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 00000000000..52abdbc9196 --- /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 +}