From bc8c24f2d87c7c9ceb6899fa61872fee28040553 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Fri, 22 Oct 2021 07:43:36 -0500 Subject: [PATCH] python3-colorclass: patch for py3.10 collections --- .../python3-colorclass/patches/fix-collections.patch | 11 +++++++++++ srcpkgs/python3-colorclass/template | 5 ++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/python3-colorclass/patches/fix-collections.patch diff --git a/srcpkgs/python3-colorclass/patches/fix-collections.patch b/srcpkgs/python3-colorclass/patches/fix-collections.patch new file mode 100644 index 00000000000..8bb61beef85 --- /dev/null +++ b/srcpkgs/python3-colorclass/patches/fix-collections.patch @@ -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, diff --git a/srcpkgs/python3-colorclass/template b/srcpkgs/python3-colorclass/template index 9dd543eb5a1..eeae14b7452 100644 --- a/srcpkgs/python3-colorclass/template +++ b/srcpkgs/python3-colorclass/template @@ -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 " 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