python3-colorclass: patch for py3.10 collections

This commit is contained in:
Andrew Benson 2021-10-22 07:43:36 -05:00
parent 7a464b21ed
commit bc8c24f2d8
2 changed files with 13 additions and 3 deletions

View File

@ -0,0 +1,11 @@
--- a/colorclass/codes.py
+++ b/colorclass/codes.py
@@ -1,7 +1,7 @@
"""Handles mapping between color names and ANSI codes and determining auto color codes."""
import sys
-from collections import Mapping
+from collections.abc import Mapping
BASE_CODES = {
'/all': 0, 'b': 1, 'f': 2, 'i': 3, 'u': 4, 'flash': 5, 'outline': 6, 'negative': 7, 'invis': 8, 'strike': 9,

View File

@ -1,10 +1,9 @@
# Template file for 'python3-colorclass'
pkgname=python3-colorclass
version=2.2.0
revision=4
revision=5
wrksrc="colorclass-${version}"
build_style=python3-module
pycompile_module="colorclass"
hostmakedepends="python3-setuptools"
checkdepends="python3-pytest python3-docopt"
short_desc="Colorful worry-free console applications"
@ -12,7 +11,7 @@ maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
license="MIT"
homepage="https://github.com/Robpol86/colorclass"
distfiles="https://github.com/Robpol86/colorclass/archive/v${version}.tar.gz"
checksum=@4b1dff3a5736f909f229429396131365d31cffac0c497bdf46a1fa61e8c2d6f7
checksum=7a0e9ac5df5c669e678e99e36731fcdc8eccd755c78dc66f46ab78fe858c159f
post_install() {
vlicense LICENSE