commit:     da0f62bc1a88d9b4a94249013057b7ecae404d7d
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 24 18:02:03 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Aug 24 18:41:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da0f62bc

dev-python/debugpy: import from ::guru, new dep of ipykernel

Closes: https://bugs.gentoo.org/800133
Closes: https://bugs.gentoo.org/796854
Closes: https://bugs.gentoo.org/796857
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/debugpy/Manifest             |  1 +
 dev-python/debugpy/debugpy-1.4.1.ebuild | 39 +++++++++++++++++++++++++++++++++
 dev-python/debugpy/metadata.xml         | 15 +++++++++++++
 3 files changed, 55 insertions(+)

diff --git a/dev-python/debugpy/Manifest b/dev-python/debugpy/Manifest
new file mode 100644
index 00000000000..f429037ba87
--- /dev/null
+++ b/dev-python/debugpy/Manifest
@@ -0,0 +1 @@
+DIST debugpy-1.4.1.tar.gz 6687670 BLAKE2B 
c7761f354700d366d49365b0294ba1f07f357283c7527fc961c702bf99d808835741a899909e37092026c81ff19f6d96ef09c06512c8315ccad158b6e8e47697
 SHA512 
aef7779cb3a1af76b5cd3d6e8c7e0b78ffe08d1ebe25cf617ca3eb00966d5b3920358809c018f5f1f9eb56b913211134acfdba7d4c0d0174e4d6cfdae058d5f5

diff --git a/dev-python/debugpy/debugpy-1.4.1.ebuild 
b/dev-python/debugpy/debugpy-1.4.1.ebuild
new file mode 100644
index 00000000000..f49de56ebc4
--- /dev/null
+++ b/dev-python/debugpy/debugpy-1.4.1.ebuild
@@ -0,0 +1,39 @@
+# 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="An implementation of the Debug Adapter Protocol for Python"
+HOMEPAGE="https://github.com/microsoft/debugpy/ 
https://pypi.org/project/debugpy/";
+SRC_URI="https://github.com/microsoft/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# There is not enough time in the universe for this test suite
+RESTRICT="test"
+
+# These files are included pre-built in the sources
+# TODO: Investigate what this is and if/how we can compile this properly
+QA_PREBUILT="
+       
/usr/lib/python*/site-packages/${PN}/_vendored/pydevd/pydevd_attach_to_process/attach_linux_*.so
+"
+
+python_prepare_all() {
+       # Drop unnecessary and unrecognized option
+       # __main__.py: error: unrecognized arguments: -n8
+       # Do not timeout
+       sed -i \
+               -e 's/-n8//g' \
+               -e '/timeout/d' \
+               pytest.ini || die
+
+       distutils-r1_python_prepare_all
+}
+
+distutils_enable_tests pytest

diff --git a/dev-python/debugpy/metadata.xml b/dev-python/debugpy/metadata.xml
new file mode 100644
index 00000000000..a8dc7238588
--- /dev/null
+++ b/dev-python/debugpy/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="pypi">debugpy</remote-id>
+               <maintainer status="unknown">
+                       <email>[email protected]</email>
+                       <name>Microsoft Corporation</name>
+               </maintainer>
+       </upstream>
+</pkgmetadata>

Reply via email to