commit:     5292bc971e77272293d4dd515ccbf519a1418e7b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 25 09:04:26 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 09:04:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5292bc97

dev-python/pytoolconfig: fix build w/ newer pdm

Closes: https://bugs.gentoo.org/878189
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/pytoolconfig-1.2.2-fix-licence.patch     | 21 ++++++++++++
 .../pytoolconfig/pytoolconfig-1.2.2-r1.ebuild      | 40 ++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/dev-python/pytoolconfig/files/pytoolconfig-1.2.2-fix-licence.patch 
b/dev-python/pytoolconfig/files/pytoolconfig-1.2.2-fix-licence.patch
new file mode 100644
index 000000000000..47c222fba143
--- /dev/null
+++ b/dev-python/pytoolconfig/files/pytoolconfig-1.2.2-fix-licence.patch
@@ -0,0 +1,21 @@
+https://github.com/bagel897/pytoolconfig/commit/7fbd830f1c302ed8151ecc2bd52c40cf70b1a580
+https://bugs.gentoo.org/878189
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -2,7 +2,7 @@
+ name = "pytoolconfig"
+ version = "1.2.2"
+ description = "Python tool configuration"
+-license-expression = "LGPL-3.0-or-later"
++license = "LGPL-3.0-or-later"
+ dependencies = [
+     "tomli>=2.0; python_version < \"3.11\"",
+     "packaging>=21.3",
+@@ -70,6 +70,6 @@ strict = true
+ 
+ [build-system]
+ requires = [
+-    "pdm-pep517>=1.0.0",
++    "pdm-pep517>=1.0.5",
+ ]
+ build-backend = "pdm.pep517.api"

diff --git a/dev-python/pytoolconfig/pytoolconfig-1.2.2-r1.ebuild 
b/dev-python/pytoolconfig/pytoolconfig-1.2.2-r1.ebuild
new file mode 100644
index 000000000000..b664169b4b4d
--- /dev/null
+++ b/dev-python/pytoolconfig/pytoolconfig-1.2.2-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=pdm
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python tool configuration"
+HOMEPAGE="
+       https://pypi.org/project/pytoolconfig/
+       https://github.com/bageljrkhanofemus/pytoolconfig/
+"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+       dev-python/packaging[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               dev-python/tomli[${PYTHON_USEDEP}]
+       ' 3.{8..10} )
+"
+BDEPEND="
+       >=dev-python/pdm-pep517-1.0.5[${PYTHON_USEDEP}]
+       test? (
+               >=dev-python/sphinx-4.5.0[${PYTHON_USEDEP}]
+               >=dev-python/tabulate-0.8.9[${PYTHON_USEDEP}]
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-fix-licence.patch
+)
+
+distutils_enable_tests pytest

Reply via email to