dev-python/strip-hints: New package

Needed as a dependency to www-servers/copyparty

Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
This commit is contained in:
Esteve Varela Colominas
2025-12-20 15:47:29 +01:00
parent dc09462e29
commit 21f3fb08de
3 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST strip-hints-0.1.13.gh.tar.gz 24743 BLAKE2B 1c448fb1b22ef69dcacdc47c9bf0bb623b5726fb82779779e140659f28d9a9b57ef70e6b8d8dbb2c15863ba04e5f5261f50672fe7b01223de40f00a93ac18b04 SHA512 61b364492578420e89de1bdf6ea18ac622cd2ce49d0691864ad531cee6e8b44684bf1d2ab487403455607f9d8b1da1373fb686962ddad57330e0fbd44adb6b47

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>esteve.varela@gmail.com</email>
<name>Esteve Varela Colominas</name>
</maintainer>
<upstream>
<remote-id type="pypi">strip-hints</remote-id>
<remote-id type="github">abarker/strip-hints</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,26 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 edo
DESCRIPTION="Function and command-line program to strip Python type hints."
HOMEPAGE="https://pypi.org/project/strip-hints
https://github.com/abarker/strip-hints"
# Using github tarball due to missing tests in pypi archive
MY_PV="8e55ffaddcc8c8a0fc968729718e0c6abe2b71e9"
SRC_URI="https://github.com/abarker/strip-hints/archive/${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
python_test() {
cd test || die
edo ./run_tests.bash
}