From d27a9f82475cdf1a9a774583a21590c64a72969f Mon Sep 17 00:00:00 2001 From: MouadCharradi Date: Sun, 13 Feb 2022 05:31:17 +0100 Subject: [PATCH] python3-cli_helpers: update to 2.2.1. --- .../patches/use-python3-mock-on-tests.patch | 13 ------------- srcpkgs/python3-cli_helpers/template | 8 +++----- 2 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 srcpkgs/python3-cli_helpers/patches/use-python3-mock-on-tests.patch 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 deleted file mode 100644 index 7af8c9d24022..000000000000 --- a/srcpkgs/python3-cli_helpers/patches/use-python3-mock-on-tests.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git tests/test_config.py tests/test_config.py -index 3cbe211..4d2bc77 100644 ---- a/tests/test_config.py -+++ b/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 index a6b29fa02012..0f2b4426aabe 100644 --- a/srcpkgs/python3-cli_helpers/template +++ b/srcpkgs/python3-cli_helpers/template @@ -1,20 +1,18 @@ # Template file for 'python3-cli_helpers' pkgname=python3-cli_helpers -version=1.2.1 +version=2.2.1 revision=4 wrksrc="cli_helpers-${version}" build_style=python3-module -pycompile_module="cli_helpers" hostmakedepends="python3-setuptools" -depends="python3-configobj python3-tabulate python3-terminaltables - python3-wcwidth" +depends="python3-configobj python3-tabulate 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=98db22eaa86827d99ee6af9f5f3923142d04df256425204530842b032849a165 +checksum=0ccc1cfcda1ac64dc7ed83d7013055cf19e5979d29e56c21f3b692de01555aae do_check() { python3 -m pytest