commit:     aae7cdc35ad1a796a762f199f94853bd05215d07
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 23 09:57:38 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 23 10:34:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aae7cdc3

dev-python/typeguard: Use PEP517 build

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/typeguard/typeguard-2.13.3-r1.ebuild | 44 +++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/dev-python/typeguard/typeguard-2.13.3-r1.ebuild 
b/dev-python/typeguard/typeguard-2.13.3-r1.ebuild
new file mode 100644
index 000000000000..b4cdda966b33
--- /dev/null
+++ b/dev-python/typeguard/typeguard-2.13.3-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Run-time type checker for Python"
+HOMEPAGE="
+       https://pypi.org/project/typeguard/
+       https://github.com/agronholm/typeguard/
+"
+SRC_URI="
+       https://github.com/agronholm/typeguard/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc 
~x86"
+
+BDEPEND="
+       dev-python/setuptools_scm[${PYTHON_USEDEP}]
+       test? (
+               dev-python/typing-extensions[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+python_test() {
+       local EPYTEST_IGNORE=(
+               # mypy changes results from version to version
+               tests/mypy
+       )
+
+       local -x PYTHONDONTWRITEBYTECODE=
+       epytest
+}

Reply via email to