commit:     6dbb73f2ae6f225bfcb067323428e95ba7eeb16b
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  9 12:42:04 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Sep  9 13:39:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dbb73f2

dev-python/pytest-console-scripts: import from ::sci

Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/pytest-console-scripts/Manifest         |  1 +
 dev-python/pytest-console-scripts/metadata.xml     | 13 +++++++++
 .../pytest-console-scripts-1.2.0.ebuild            | 33 ++++++++++++++++++++++
 3 files changed, 47 insertions(+)

diff --git a/dev-python/pytest-console-scripts/Manifest 
b/dev-python/pytest-console-scripts/Manifest
new file mode 100644
index 00000000000..2d4349eda3b
--- /dev/null
+++ b/dev-python/pytest-console-scripts/Manifest
@@ -0,0 +1 @@
+DIST pytest-console-scripts-1.2.0.tar.gz 13976 BLAKE2B 
1452ecfdc47d3341d8f3f30d49f371ae89d6138d56e4dc3a230f6a3803c6c36f542df40e2785c99c3cfd5080fa03b5b3d4926bb742dc99bd2127d47305fbf788
 SHA512 
07c9baab85035265ab6a21cc0c754b076dba87f08e1ab51319ef47a0a8af0b44f7d42422014c68cf93ed28b508138a70e14b968707cc831682885b3ca8106aa7

diff --git a/dev-python/pytest-console-scripts/metadata.xml 
b/dev-python/pytest-console-scripts/metadata.xml
new file mode 100644
index 00000000000..9d775e8a4ca
--- /dev/null
+++ b/dev-python/pytest-console-scripts/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>s...@gentoo.org</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <stabilize-allarches/>
+       <upstream>
+               <remote-id type="pypi">pytest-console-scripts</remote-id>
+               <remote-id 
type="github">kvas-it/pytest-console-scripts</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git 
a/dev-python/pytest-console-scripts/pytest-console-scripts-1.2.0.ebuild 
b/dev-python/pytest-console-scripts/pytest-console-scripts-1.2.0.ebuild
new file mode 100644
index 00000000000..6a673ce9730
--- /dev/null
+++ b/dev-python/pytest-console-scripts/pytest-console-scripts-1.2.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Pytest plugin for testing console scripts"
+HOMEPAGE="https://github.com/kvas-it/pytest-console-scripts";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}]
+       >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/setuptools_scm[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests --install pytest
+
+python_prepare_all() {
+       # allow newer setuptools_scm
+       sed -i -e 's/setuptools_scm<6/setuptools_scm/g' setup.py || die
+
+       distutils-r1_python_prepare_all
+}

Reply via email to