summaryrefslogtreecommitdiff
path: root/dev-python/entrypoint2
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-06-01 12:52:02 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-06-01 12:52:02 +0000
commitdf899fa791750d19ac5a7dc30a1778095d3f8d60 (patch)
tree4aff626b567f25f42c616d1c81fdc1d243d95cab /dev-python/entrypoint2
parent215476f669d20b307ff052c3ff0d420102108e58 (diff)
downloadbaldeagleos-repo-df899fa791750d19ac5a7dc30a1778095d3f8d60.tar.gz
baldeagleos-repo-df899fa791750d19ac5a7dc30a1778095d3f8d60.tar.xz
baldeagleos-repo-df899fa791750d19ac5a7dc30a1778095d3f8d60.zip
Adding metadata
Diffstat (limited to 'dev-python/entrypoint2')
-rw-r--r--dev-python/entrypoint2/entrypoint2-1.0-r1.ebuild29
-rw-r--r--dev-python/entrypoint2/files/entrypoint2-1.0-python311.patch13
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/entrypoint2/entrypoint2-1.0-r1.ebuild b/dev-python/entrypoint2/entrypoint2-1.0-r1.ebuild
new file mode 100644
index 000000000000..fbc47f47a05a
--- /dev/null
+++ b/dev-python/entrypoint2/entrypoint2-1.0-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+inherit distutils-r1
+
+DESCRIPTION="Easy to use command-line interface for python modules"
+HOMEPAGE="https://github.com/ponty/entrypoint2"
+SRC_URI="https://github.com/ponty/entrypoint2/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+BDEPEND="
+ test? (
+ dev-python/easyprocess[${PYTHON_USEDEP}]
+ dev-python/path-py[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-python311.patch"
+)
+
+distutils_enable_tests pytest
diff --git a/dev-python/entrypoint2/files/entrypoint2-1.0-python311.patch b/dev-python/entrypoint2/files/entrypoint2-1.0-python311.patch
new file mode 100644
index 000000000000..95de1d3b689a
--- /dev/null
+++ b/dev-python/entrypoint2/files/entrypoint2-1.0-python311.patch
@@ -0,0 +1,13 @@
+diff --git a/entrypoint2/__init__.py b/entrypoint2/__init__.py
+index 63ab78b..a99a298 100644
+--- a/entrypoint2/__init__.py
++++ b/entrypoint2/__init__.py
+@@ -345,7 +345,7 @@ def _correct_args(func, kwargs):
+ Convert a dictionary of arguments including __argv into a list
+ for passing to the function.
+ """
+- args = inspect.getargspec(func)[0]
++ args = inspect.getfullargspec(func)[0]
+ return [kwargs[arg] for arg in args] + kwargs["__args"]
+
+