diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-07 15:17:14 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-07 15:17:14 +0300 |
commit | 763be25dcbe872d8fc44b4850cd5aee011b84b1d (patch) | |
tree | f172b21c5afb3f13fef88eccc0b02a93f153e339 | |
parent | games-puzzle/arrows: remove old (diff) | |
download | gentoo-763be25dcbe872d8fc44b4850cd5aee011b84b1d.tar.gz gentoo-763be25dcbe872d8fc44b4850cd5aee011b84b1d.tar.bz2 gentoo-763be25dcbe872d8fc44b4850cd5aee011b84b1d.zip |
dev-python/argparse-manpage: patch out six dep
Closes: https://bugs.gentoo.org/811969
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | dev-python/argparse-manpage/argparse-manpage-1.5.ebuild | 4 | ||||
-rw-r--r-- | dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch | 19 |
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild b/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild index f1f23c8c017d..749cf5783462 100644 --- a/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild +++ b/dev-python/argparse-manpage/argparse-manpage-1.5.ebuild @@ -14,4 +14,8 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" +PATCHES=( + "${FILESDIR}/${P}-remove-six-dep.patch" +) + distutils_enable_tests pytest diff --git a/dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch b/dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch new file mode 100644 index 000000000000..7a5aa777739a --- /dev/null +++ b/dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch @@ -0,0 +1,19 @@ +--- a/examples/copr/copr_cli/main.py ++++ b/examples/copr/copr_cli/main.py +@@ -8,15 +8,11 @@ import argparse + import sys + import datetime + import time +-import six + import simplejson + from collections import defaultdict + + import logging +-if six.PY2: +- from urlparse import urlparse +-else: +- from urllib.parse import urlparse ++from urllib.parse import urlparse + + if sys.version_info < (2, 7): + class NullHandler(logging.Handler): |