summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-08-28 13:20:17 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2017-08-28 13:34:32 -0500
commitc620977d5a5524284f5b00efe4fb4baaa3ca3ad6 (patch)
tree349bebc3a127dac5dba4c91eee159e50f20a3389 /dev-python/cmd2
parentdev-python/pyperclip: adding for cmd2 bup (diff)
downloadgentoo-c620977d5a5524284f5b00efe4fb4baaa3ca3ad6.tar.gz
gentoo-c620977d5a5524284f5b00efe4fb4baaa3ca3ad6.tar.bz2
gentoo-c620977d5a5524284f5b00efe4fb4baaa3ca3ad6.zip
dev-python/cmd2: 0.7.5 bup
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-python/cmd2')
-rw-r--r--dev-python/cmd2/Manifest1
-rw-r--r--dev-python/cmd2/cmd2-0.7.5.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/cmd2/Manifest b/dev-python/cmd2/Manifest
index 12c6ac6de074..6c84c39e90ad 100644
--- a/dev-python/cmd2/Manifest
+++ b/dev-python/cmd2/Manifest
@@ -1,2 +1,3 @@
DIST cmd2-0.6.7.tar.gz 20558 SHA256 8e98c7a1cfd106183559240b269e7cd9fe97e8342b5c05295f591aab6fd2f4f0 SHA512 a37393bd9ef6c3ece02249b5a4293a25889ebd68120ee592d2ccd77a8e3e4ab3ba724e0be7f3c98a453dbba30c1851c7f690fbe69711df8a723545f8dbe38607 WHIRLPOOL 9da375c5ab0e1cd0f13e67b1b168b5f87be7f56bc758589b1e41959f3e14b07ad1e055fc2fce6d44ded77f806217b6bbe590009fec27c9179922ea764db0b86d
DIST cmd2-0.7.0.tar.gz 371786 SHA256 5ab76a1f07dd5fd1cc3c15ba4080265f33b80c7fd748d71bd69a51d60b30f51a SHA512 13f9777908dabcbf9c81c0aea371c7c55e413616dfecc75b51b18e38b286656c9fc2b7368c859585a70d574c9c04413b1e65a5a58aa878f90283c31a54d49465 WHIRLPOOL bc3e65aed413a8b243de8b5a770a8ab4ffd1ba5d0c2db2e1ad619eb051fe5ff6b6e3485e121e2a8aa8d0c7a0c51633de1a23220f0189f0f17fa75ccdf7a14c5a
+DIST cmd2-0.7.5.tar.gz 64939 SHA256 7a47afafc5ad45649a2998df8d96f39d8e1d0686f55c785285889e45151ff75f SHA512 14376ee283ac1c153ab0194a5dfa168eca36174783322ff72e190ed96b8c315518fef4f3ef09d77633851cb53b32f71fe380042ee3c0ef8ef2cbdfa16dabf704 WHIRLPOOL e8955c7d237111fe6486575ed1e22db132ee1f3959b0737c41667b3bda65256610cabd9a1ba64c9766e07a81afcae0d2780e196a739ac14bcd615ecc940c4792
diff --git a/dev-python/cmd2/cmd2-0.7.5.ebuild b/dev-python/cmd2/cmd2-0.7.5.ebuild
new file mode 100644
index 000000000000..9d846542cebd
--- /dev/null
+++ b/dev-python/cmd2/cmd2-0.7.5.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Extra features for standard library's cmd module"
+HOMEPAGE="https://github.com/python-cmd2/cmd2"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/pyparsing-2.0.1[${PYTHON_USEDEP}]
+ dev-python/pyperclip[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+"
+
+python_prepare_all() {
+ # Disable failing test
+ [[ ${PV} == 0.7.0 ]] || die "Please remove the sed from python_prepare_all"
+ sed -i -e 's:test_input_redirection:_&:' tests/test_cmd2.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ py.test -vv || die
+ ${EPYTHON} example/example.py --test example/exampleSession.txt || die
+}