diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-23 14:19:49 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-23 14:19:49 +0000 |
| commit | 2ed653bf78da5910c2e335afbc2fac089f2f57b0 (patch) | |
| tree | 43a4234ef939d20c69d281de0a7d890e3f343d05 /dev-python/tzdata | |
| parent | 6958baae8a3ca94ae5a13ce8099b2f07d5001fce (diff) | |
| download | baldeagleos-repo-2ed653bf78da5910c2e335afbc2fac089f2f57b0.tar.gz baldeagleos-repo-2ed653bf78da5910c2e335afbc2fac089f2f57b0.tar.xz baldeagleos-repo-2ed653bf78da5910c2e335afbc2fac089f2f57b0.zip | |
Adding metadata
Diffstat (limited to 'dev-python/tzdata')
| -rw-r--r-- | dev-python/tzdata/tzdata-10000.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/tzdata/tzdata-10000.ebuild b/dev-python/tzdata/tzdata-10000.ebuild new file mode 100644 index 000000000000..3e7f05af0791 --- /dev/null +++ b/dev-python/tzdata/tzdata-10000.ebuild @@ -0,0 +1,37 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="tzdata shim to satisfy requirements (while using system tzdata)" +HOMEPAGE="https://peps.python.org/pep-0615/" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + sys-libs/timezone-data +" + +src_unpack() { + mkdir "${S}" || die + cat > "${S}/pyproject.toml" <<-EOF || die + [build-system] + requires = ["flit_core"] + build-backend = "flit_core.buildapi" + + [project] + name = "tzdata" + version = "${PV}" + description = "tzdata shim to satisfy requirements (using system tzdata)" + EOF + cat > "${S}/tzdata.py" <<-EOF || die + raise ImportError("Please do not import tzdata, use zoneinfo module instead, see PEP 615") + EOF +} |
