Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/curtsies/, dev-python/curtsies/files/
Date: Tue, 26 Feb 2019 14:24:17
Message-Id: 1551191025.f369e978f691eab9f4ca842a414449b1211ce857.grozin@gentoo
1 commit: f369e978f691eab9f4ca842a414449b1211ce857
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 26 14:23:06 2019 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 26 14:23:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f369e978
7
8 dev-python/curtsies: depend on dev-python/typing correctly
9
10 Bug: https://bugs.gentoo.org/show_bug.cgi?id=678742
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
13
14 dev-python/curtsies/curtsies-0.3.0-r1.ebuild | 38 +++++++++++++++++++++++++
15 dev-python/curtsies/files/curtsies-typing.patch | 9 ++++++
16 2 files changed, 47 insertions(+)
17
18 diff --git a/dev-python/curtsies/curtsies-0.3.0-r1.ebuild b/dev-python/curtsies/curtsies-0.3.0-r1.ebuild
19 new file mode 100644
20 index 00000000000..b12c3e7ffdd
21 --- /dev/null
22 +++ b/dev-python/curtsies/curtsies-0.3.0-r1.ebuild
23 @@ -0,0 +1,38 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
30 +
31 +inherit distutils-r1
32 +
33 +DESCRIPTION="Curses-like terminal wrapper, with colored strings"
34 +HOMEPAGE="https://github.com/thomasballinger/curtsies"
35 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
36 +
37 +SLOT="0"
38 +LICENSE="MIT"
39 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
40 +IUSE="test"
41 +
42 +RDEPEND="
43 + >=dev-python/blessings-1.5[${PYTHON_USEDEP}]
44 + >=dev-python/wcwidth-0.1.4[${PYTHON_USEDEP}]
45 + python_targets_python2_7? ( dev-python/typing[python_targets_python2_7] )
46 + python_targets_python3_4? ( dev-python/typing[python_targets_python3_4] )
47 +"
48 +DEPEND="${RDEPEND}
49 + dev-python/setuptools[${PYTHON_USEDEP}]
50 + test? (
51 + dev-python/mock[${PYTHON_USEDEP}]
52 + dev-python/nose[${PYTHON_USEDEP}]
53 + dev-python/pyte[${PYTHON_USEDEP}]
54 + )
55 +"
56 +
57 +PATCHES=( "${FILESDIR}"/${PN}-typing.patch )
58 +
59 +python_test() {
60 + nosetests --verbose tests || die
61 +}
62
63 diff --git a/dev-python/curtsies/files/curtsies-typing.patch b/dev-python/curtsies/files/curtsies-typing.patch
64 new file mode 100644
65 index 00000000000..28ab09f89fe
66 --- /dev/null
67 +++ b/dev-python/curtsies/files/curtsies-typing.patch
68 @@ -0,0 +1,9 @@
69 +diff -r -U2 curtsies-0.3.0.orig/setup.py curtsies-0.3.0/setup.py
70 +--- curtsies-0.3.0.orig/setup.py 2018-02-14 05:54:06.000000000 +0700
71 ++++ curtsies-0.3.0/setup.py 2019-02-26 17:10:07.076471372 +0700
72 +@@ -42,5 +42,4 @@
73 + 'blessings>=1.5',
74 + 'wcwidth>=0.1.4',
75 +- 'typing',
76 + ],
77 + tests_require = [