commit: c81f6e3182a3aa1bdaac2331c639f77262ee929f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 21 16:56:56 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Nov 21 19:04:58 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c81f6e31
dev-python/expandvars: New package, v0.11.0
New build-time dependency of homemade build backend in dev-python/yarl.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/expandvars/Manifest | 1 +
dev-python/expandvars/expandvars-0.11.0.ebuild | 41 ++++++++++++++++++++++++++
dev-python/expandvars/metadata.xml | 12 ++++++++
3 files changed, 54 insertions(+)
diff --git a/dev-python/expandvars/Manifest b/dev-python/expandvars/Manifest
new file mode 100644
index 000000000000..daa32f23ac2c
--- /dev/null
+++ b/dev-python/expandvars/Manifest
@@ -0,0 +1 @@
+DIST expandvars-0.11.0.gh.tar.gz 10663 BLAKE2B
cfbcb8bedc61cc8b1e88d4774784518e15846f7ea5ddbf58bd016ea2043dd5b1c9e55af117f6482e05e9ae4ba07e01d0fb471a72719f38191f1a29a9f66387a9
SHA512
e8de6544f2d369728e35c8b862662f348f46673f836f8b14dbdcfdc3dbcb7efda80deb55f8bcd597037ac974752e2463d429ddda3b8502fe19c402c253babf7f
diff --git a/dev-python/expandvars/expandvars-0.11.0.ebuild
b/dev-python/expandvars/expandvars-0.11.0.ebuild
new file mode 100644
index 000000000000..6936e00222b6
--- /dev/null
+++ b/dev-python/expandvars/expandvars-0.11.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Expand system variables Unix style"
+HOMEPAGE="
+ https://github.com/sayanarijit/expandvars/
+ https://pypi.org/project/expandvars/
+"
+SRC_URI="
+ https://github.com/sayanarijit/expandvars/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # requires toml, useless
+ tests/test_expandvars.py::test_version
+)
+
+src_prepare() {
+ # sigh
+ cat >> pyproject.toml <<-EOF || die
+ [build-system]
+ requires = ["poetry-core"]
+ build-backend = "poetry.core.masonry.api"
+ EOF
+
+ distutils-r1_src_prepare
+}
diff --git a/dev-python/expandvars/metadata.xml
b/dev-python/expandvars/metadata.xml
new file mode 100644
index 000000000000..d66a900919de
--- /dev/null
+++ b/dev-python/expandvars/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>[email protected]</email>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="github">sayanarijit/expandvars</remote-id>
+ <remote-id type="pypi">expandvars</remote-id>
+ </upstream>
+</pkgmetadata>