Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pysrt/
Date: Wed, 22 Jan 2020 14:44:56
Message-Id: 1579704279.42536b527a9dd7c28fb274f5fbd6995f565fde42.sbraz@gentoo
1 commit: 42536b527a9dd7c28fb274f5fbd6995f565fde42
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 22 14:43:55 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 22 14:44:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42536b52
7
8 Revert "dev-python/pysrt: remove old"
9
10 This reverts commit 75e875c8e9f5de298c8450ad4e7212b27e299e65.
11
12 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
13
14 dev-python/pysrt/pysrt-1.1.1.ebuild | 31 +++++++++++++++++++++++++++++++
15 1 file changed, 31 insertions(+)
16
17 diff --git a/dev-python/pysrt/pysrt-1.1.1.ebuild b/dev-python/pysrt/pysrt-1.1.1.ebuild
18 new file mode 100644
19 index 00000000000..315ab0b380a
20 --- /dev/null
21 +++ b/dev-python/pysrt/pysrt-1.1.1.ebuild
22 @@ -0,0 +1,31 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +PYTHON_COMPAT=( python{2_7,3_6} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Python library used to edit or create SubRip files"
32 +HOMEPAGE="https://github.com/byroot/pysrt https://pypi.org/project/pysrt/"
33 +SRC_URI="https://pypi.python.org/packages/f6/33/16ad65a8973cb8bcb494af09ee1b9ab5ffdd6ff300bce5d3ac7d3cb1f2cc/${P}.tar.gz"
34 +
35 +LICENSE="GPL-3"
36 +SLOT="0"
37 +KEYWORDS="amd64 x86"
38 +IUSE="test"
39 +RESTRICT="!test? ( test )"
40 +
41 +RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]"
42 +DEPEND="
43 + dev-python/setuptools[${PYTHON_USEDEP}]
44 + test? (
45 + dev-python/nose[coverage(+),${PYTHON_USEDEP}]
46 + ${RDEPEND}
47 + )
48 +"
49 +
50 +python_test() {
51 + nosetests --with-coverage --cover-package=pysrt \
52 + || die "Tests failed under ${EPYTHON}"
53 +}