summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-25 10:04:26 +0100
committerSam James <sam@gentoo.org>2022-10-25 10:04:34 +0100
commit5292bc971e77272293d4dd515ccbf519a1418e7b (patch)
treeab883c7b6796824230daf96c28e91e977aa05203 /dev-python/pytoolconfig
parentdev-python/priority: Remove old (diff)
downloadgentoo-5292bc971e77272293d4dd515ccbf519a1418e7b.tar.gz
gentoo-5292bc971e77272293d4dd515ccbf519a1418e7b.tar.bz2
gentoo-5292bc971e77272293d4dd515ccbf519a1418e7b.zip
dev-python/pytoolconfig: fix build w/ newer pdm
Closes: https://bugs.gentoo.org/878189 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/pytoolconfig')
-rw-r--r--dev-python/pytoolconfig/files/pytoolconfig-1.2.2-fix-licence.patch21
-rw-r--r--dev-python/pytoolconfig/pytoolconfig-1.2.2-r1.ebuild40
2 files changed, 61 insertions, 0 deletions
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