dev-python/flit_core: Add from Gentoo

It's from Gentoo commit 9e8c586144011344296c45f23a10dd8ad7a12ddf.

It's a dependency of distutils eclass.
This commit is contained in:
Krzesimir Nowak 2022-04-05 21:52:02 +02:00
parent bdf15cd73b
commit 59201b9f87
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST flit_core-3.7.1.tar.gz 40330 BLAKE2B 67a938ef576a70ce1bfe1f1bf996f1d2e468ea46f76ed2a363b278cebc42602b38fbf44a6bc45294996549d673d3145e2db2293780b8d157fd4f3b3876dc88cd SHA512 8c477bcd2924a93b51e6f3d8bbc3599929663c8d5addf16062e8e1b6c5acd740a4e4905b144092efb6e38e9700479525013831a53e055438f94c1e53ff5c6f8d

View File

@ -0,0 +1,35 @@
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
EAPI=7
DISTUTILS_USE_PEP517=standalone
PYTHON_COMPAT=( python3_{8..11} pypy3 )
inherit distutils-r1
DESCRIPTION="Simplified packaging of Python modules (core module)"
HOMEPAGE="
https://pypi.org/project/flit_core/
https://github.com/pypa/flit/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
RDEPEND="
dev-python/tomli[${PYTHON_USEDEP}]
"
BDEPEND="
test? ( dev-python/testpath[${PYTHON_USEDEP}] )
"
distutils_enable_tests pytest
src_prepare() {
rm -r flit_core/vendor || die
sed -i -e 's:from \.vendor ::' flit_core/*.py || die
distutils-r1_src_prepare
}

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>chutzpah@gentoo.org</email>
<name>Patrick McLean</name>
</maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">flit_core</remote-id>
<remote-id type="github">pypa/flit</remote-id>
</upstream>
</pkgmetadata>