diff options
Diffstat (limited to 'dev-python/pyxdg')
-rw-r--r-- | dev-python/pyxdg/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pyxdg/files/pyxdg-0.28-py3.12.patch | 12 | ||||
-rw-r--r-- | dev-python/pyxdg/pyxdg-0.28-r1.ebuild | 29 |
3 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/pyxdg/Manifest b/dev-python/pyxdg/Manifest index 0b39ba0b2ea7..40e0c7b12eb7 100644 --- a/dev-python/pyxdg/Manifest +++ b/dev-python/pyxdg/Manifest @@ -1,3 +1,5 @@ +AUX pyxdg-0.28-py3.12.patch 454 BLAKE2B 16b18be321a76cddd48c44dff1d16498917ed727f34d34afdde0f8fd50a17e7cd7c9aa974b5cdf2feb45fd403f95fd8510b6422373d2b83f688d46e761814f14 SHA512 df9485e183c0c2e8ccbf5dc99054923a4e3eed7195e5f07e749c165116b5c6929d544da364d2250b7809554fd1102b33f1cd05ae1763ac9c4bd309183e7c7353 DIST pyxdg-rel-0.28.gh.tar.gz 75755 BLAKE2B ba6d0dd956b13b7722d48f3d8a4ffa73b17efd6b4db3e73f521de72338dfacf11301449445bc911657f45de1c849c6425a24e5523f67116d96c7f38aa7bf320b SHA512 e1a7c8675afa109495e3530d9acc59a17368723b03ff66ee502133fd383bbe11c9908d93b18fdad3b589d47225ff8bf6bb8cacc800b1c1f39059e1178dafc1b5 +EBUILD pyxdg-0.28-r1.ebuild 704 BLAKE2B 554e1545c1cfcc16fd9f5f7a9af0b5f68ef5fe6f8c8333ac1efa02c0fabb37083258471827fbfed004c0eef2951bce955a95acaa770e3b7b4dfad970a00ccb7d SHA512 f5a10cb9b24314e4aee8f0fde08fc63e8021322daf3dcf2b3368df8722f2f08c0772ed695d9fa0005771f1704a18a4c3d6b2ca1d9d7252bedf9e78f61bae9f29 EBUILD pyxdg-0.28.ebuild 652 BLAKE2B b559e258e012ec00ecfe679d3b4908fce5745216c8af889f76c7a3bb8a19dd4fef374386db88bda16b6ceafb3a0eb255f05525d22dbb1ff2e5cf719c62c33133 SHA512 189851f6bf2a133921dcf213481c43fd0a796ca0fdb5d9a0890c871ffae9094bcb82364a1d36b539bb2ffd3f8ecb55ca9d966bad4e8bfe436ccba708082fc5a2 MISC metadata.xml 632 BLAKE2B ccea5b9635800df81a1e0d99f3dad3f717b83d125c72299d4987d67df4835acf93b2cf4b1c42180bb6c068a7f122f643dde11c3f9fe8bd30dfa265dc7f1ac920 SHA512 625f45990e79a60e795e6d9d2cd1aacff2b550284beecd804d2adf91679aac261cc542a9160c491891e9f5573afaf6f23f3679144ec6b945a4572e9c7d9153ca diff --git a/dev-python/pyxdg/files/pyxdg-0.28-py3.12.patch b/dev-python/pyxdg/files/pyxdg-0.28-py3.12.patch new file mode 100644 index 000000000000..20b7a5b514bc --- /dev/null +++ b/dev-python/pyxdg/files/pyxdg-0.28-py3.12.patch @@ -0,0 +1,12 @@ +diff -r -U3 pyxdg-rel-0.28.orig/test/test_basedirectory.py pyxdg-rel-0.28/test/test_basedirectory.py +--- pyxdg-rel-0.28.orig/test/test_basedirectory.py 2022-06-05 18:34:18.000000000 +0700 ++++ pyxdg-rel-0.28/test/test_basedirectory.py 2023-10-28 22:41:56.975921683 +0700 +@@ -9,7 +9,7 @@ + try: + reload + except NameError: +- from imp import reload ++ from importlib import reload + + class BaseDirectoryTest(unittest.TestCase): + def setUp(self): diff --git a/dev-python/pyxdg/pyxdg-0.28-r1.ebuild b/dev-python/pyxdg/pyxdg-0.28-r1.ebuild new file mode 100644 index 000000000000..deb254a6cf7c --- /dev/null +++ b/dev-python/pyxdg/pyxdg-0.28-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +MY_P="${PN}-rel-${PV}" +DESCRIPTION="A Python module to deal with freedesktop.org specifications" +HOMEPAGE=" + https://freedesktop.org/wiki/Software/pyxdg/ + https://pypi.org/project/pyxdg/ +" +SRC_URI=" + https://github.com/takluyver/pyxdg/archive/rel-${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +PATCHES=( "${FILESDIR}"/${P}-py3.12.patch ) + +distutils_enable_tests pytest |