commit:     e8028c94f9142523603e71009fdbe75e450e2443
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  7 02:57:42 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr  7 03:00:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8028c94

dev-python/backports-tarfile: New package, v1.0.0

New dependency of dev-python/jaraco-context.

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

 dev-python/backports-tarfile/Manifest              |  1 +
 .../backports-tarfile-1.0.0.ebuild                 | 39 ++++++++++++++++++++++
 dev-python/backports-tarfile/metadata.xml          | 12 +++++++
 3 files changed, 52 insertions(+)

diff --git a/dev-python/backports-tarfile/Manifest 
b/dev-python/backports-tarfile/Manifest
new file mode 100644
index 000000000000..16f3d9b62afd
--- /dev/null
+++ b/dev-python/backports-tarfile/Manifest
@@ -0,0 +1 @@
+DIST backports.tarfile-1.0.0.tar.gz 32952 BLAKE2B 
264f63406f0cbf053bcbbc2933317152cbe89e765b87449111cf3397b072d68b1671918a7e3549f9f96dfc62c540f36a7b4e263d5c3f3ea305093a992d68eb2b
 SHA512 
c44907a9b5c9af5dbcc37ecd613dcd7e269b1eed71a757d4e6c32828cc703a3060943f67a0caf90680ade89df8a938b999ba64d30ebfb5b63fbb0c70a068d349

diff --git a/dev-python/backports-tarfile/backports-tarfile-1.0.0.ebuild 
b/dev-python/backports-tarfile/backports-tarfile-1.0.0.ebuild
new file mode 100644
index 000000000000..cbf154d77acd
--- /dev/null
+++ b/dev-python/backports-tarfile/backports-tarfile-1.0.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYPI_NO_NORMALIZE=1
+PYPI_PN=${PN/-/.}
+# This is a backport from Python 3.12.
+PYTHON_COMPAT=( pypy3 python3_{10..11} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Backport of CPython tarfile module (from Python 3.12)"
+HOMEPAGE="
+       https://github.com/jaraco/backports.tarfile/
+       https://pypi.org/project/backports.tarfile/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+src_configure() {
+       grep -q 'build-backend = "setuptools' pyproject.toml ||
+               die "Upstream changed build-backend, recheck"
+       # write a custom pyproject.toml to ease setuptools bootstrap
+       cat > pyproject.toml <<-EOF || die
+               [build-system]
+               requires = ["flit_core >=3.2,<4"]
+               build-backend = "flit_core.buildapi"
+
+               [project]
+               name = "backports.tarfile"
+               version = "${PV}"
+               description = "Backport of CPython tarfile module"
+       EOF
+}

diff --git a/dev-python/backports-tarfile/metadata.xml 
b/dev-python/backports-tarfile/metadata.xml
new file mode 100644
index 000000000000..63138bedd14d
--- /dev/null
+++ b/dev-python/backports-tarfile/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>pyt...@gentoo.org</email>
+       </maintainer>
+       <stabilize-allarches/>
+       <upstream>
+               <remote-id type="github">jaraco/backports.tarfile</remote-id>
+               <remote-id type="pypi">backports.tarfile</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to