commit:     e5c7ed710cc10812553e1abcbe6f99c2473c4a7e
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Fri Jan  6 09:39:23 2023 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Fri Jan  6 09:39:23 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=e5c7ed71

dev-python/blessings: new package, add 1.7-r1

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 dev-python/blessings/blessings-1.7-r1.ebuild | 29 ++++++++++++++++++++++++++++
 dev-python/blessings/metadata.xml            | 17 ++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-python/blessings/blessings-1.7-r1.ebuild 
b/dev-python/blessings/blessings-1.7-r1.ebuild
new file mode 100644
index 000000000..9e63661ca
--- /dev/null
+++ b/dev-python/blessings/blessings-1.7-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="A thin, practical wrapper around terminal coloring, styling, and 
positioning"
+HOMEPAGE="https://github.com/erikrose/blessings 
https://pypi.org/project/blessings/";
+# https://github.com/erikrose/blessings/pull/136
+SRC_URI="https://github.com/erikrose/${PN}/archive/${PV}.tar.gz -> 
${P}.gh.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="amd64 ~riscv x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+
+distutils_enable_sphinx docs
+distutils_enable_tests nose
+
+python_test() {
+       # The tests need an interactive terminal
+       # https://github.com/erikrose/blessings/issues/117
+       script -eqc "nosetests -v -w \"${BUILD_DIR}\"" /dev/null \
+               || die "tests failed with ${EPYTHON}"
+}

diff --git a/dev-python/blessings/metadata.xml 
b/dev-python/blessings/metadata.xml
new file mode 100644
index 000000000..85caac482
--- /dev/null
+++ b/dev-python/blessings/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Horea Christian</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="pypi">blessings</remote-id>
+               <remote-id type="github">erikrose/blessings</remote-id>
+               <bugs-to>https://github.com/erikrose/blessings/issues</bugs-to>
+       </upstream>
+</pkgmetadata>

Reply via email to