summaryrefslogtreecommitdiff
path: root/dev-python/rarfile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-24 13:27:08 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-24 13:27:08 +0100
commitbfc2a8298cab03d289dc2cfed63308396fa0babe (patch)
tree2d4288572b0938dcfc64edd39a4c1086402931a5 /dev-python/rarfile
parente28a6e6eb5373071be3a09aa457f0488d753c80c (diff)
gentoo auto-resync : 24:06:2023 - 13:27:08
Diffstat (limited to 'dev-python/rarfile')
-rw-r--r--dev-python/rarfile/Manifest3
-rw-r--r--dev-python/rarfile/files/rarfile-4.0-fix-pypy-datetime.patch19
-rw-r--r--dev-python/rarfile/rarfile-4.0-r2.ebuild (renamed from dev-python/rarfile/rarfile-4.0-r1.ebuild)9
3 files changed, 27 insertions, 4 deletions
diff --git a/dev-python/rarfile/Manifest b/dev-python/rarfile/Manifest
index 8182ac0c5530..18b868e962b2 100644
--- a/dev-python/rarfile/Manifest
+++ b/dev-python/rarfile/Manifest
@@ -1,4 +1,5 @@
+AUX rarfile-4.0-fix-pypy-datetime.patch 806 BLAKE2B 31a7bdef281a15373eee9ac7eb78ffc31bfaa589ab946887aab6baa68de6f0f4e93934d6a2eaafddf3e16079cbd7422e45d1271fdc32e400652c431f8f4032a1 SHA512 dff7fa9cecd56ea1a7c63233790dbba7ebe2beee3887d992f7a1ec62fe0467130f8b292cd356fe6c34c6f455ff5f40a9bc93eabc2edbef8369bfb4335f22933c
AUX rarfile-4.0.patch 598 BLAKE2B bf53d965f61a693fd9e26d8d6f3c3305fe31371363ddfff6e21e48a98ea2386b7effdcce6f615c553b3a764da73b72791612b723e8432de1a156189e93e062f4 SHA512 2d3b37f7b58e04ac9f880eba0751f38486bfd17e3c96b6b6f4e08a6b8b70a5cb482af4b8b5ef3c46ccde8f7bb848c84e123d950687cb91930ab6304e7febba57
DIST rarfile-4.0.tar.gz 148026 BLAKE2B 331548d54dcc3d81c690cc383e36e3f00515999c72abb54060e0dbb34691bb7e06736318a33ec349492e27e561ed2f4ff4446cc5254e9f341f4633adaab878aa SHA512 05e15acd749564288d4f069970ac196344c33fd2710e918b84afe4c388aa364a17c63f86577037524336e3a022f6db2c8619f9b526f89e00753a8ab0d89263d4
-EBUILD rarfile-4.0-r1.ebuild 530 BLAKE2B ffe162bf89e043d78c9208016c54c8c37c49cb92655962584ba6dcc38b005beda171fef092b437eb364d07f7af5fdc6fe1a8b63ec37ec7e1c2beeb69f7a0f12e SHA512 2fb0d995978044ff04b7b612d4e48b395b696b5c87da59be07953e0b9a82f2a31290612c338e2c10570f5c86eda6015f0c00c9ba75ecd0384cd1e041a7881d0e
+EBUILD rarfile-4.0-r2.ebuild 577 BLAKE2B 98505fa5c3eba4a844d683ce1c97bd776619e22d11c690ba823e7cd44626210defa586c1b0136737567e70c043aed6d4b371e7f6e96a30b492df09d8986d75a1 SHA512 f052bee23c213ac36ea7431b18e0a45bc10d637cf99a8d6026ec82f961be08ce24839520f29fc68ff9ce193531958664d00e2e2322af3a2692c0b6cb78bea2e2
MISC metadata.xml 531 BLAKE2B fa977e37331b11cf627c551ca3d0e579338cd3ac43d761e5d6f120caf1386cc18d602770376f1b64360911642767cb4b3456d235270137ebc772fc02791e8665 SHA512 8d2d3de2fc185c657aed70818abadcac021c679e352774f941bf6fa908dfc383139c2343f5695e21197553724f75f853ed03cafc9413640ca6a4257c6e1867b6
diff --git a/dev-python/rarfile/files/rarfile-4.0-fix-pypy-datetime.patch b/dev-python/rarfile/files/rarfile-4.0-fix-pypy-datetime.patch
new file mode 100644
index 000000000000..8973ce91dffb
--- /dev/null
+++ b/dev-python/rarfile/files/rarfile-4.0-fix-pypy-datetime.patch
@@ -0,0 +1,19 @@
+https://github.com/markokr/rarfile/commit/cd9e650e5294f9c5cd4effcd9705c38a760afde6
+
+From cd9e650e5294f9c5cd4effcd9705c38a760afde6 Mon Sep 17 00:00:00 2001
+From: Marko Kreen <markokr@gmail.com>
+Date: Fri, 5 Aug 2022 19:02:09 +0300
+Subject: [PATCH] nsdatetime: support pypy internal use
+
+--- a/rarfile.py
++++ b/rarfile.py
+@@ -3121,7 +3121,7 @@ class nsdatetime(datetime):
+ __slots__ = ("nanosecond",)
+ nanosecond: int #: Number of nanoseconds, 0 <= nanosecond < 999999999
+
+- def __new__(cls, year, month, day, hour=0, minute=0, second=0,
++ def __new__(cls, year, month=None, day=None, hour=0, minute=0, second=0,
+ microsecond=0, tzinfo=None, *, fold=0, nanosecond=0):
+ usec, mod = divmod(nanosecond, 1000) if nanosecond else (microsecond, 0)
+ if mod == 0:
+
diff --git a/dev-python/rarfile/rarfile-4.0-r1.ebuild b/dev-python/rarfile/rarfile-4.0-r2.ebuild
index b4e875c7ab72..7080df4c13ce 100644
--- a/dev-python/rarfile/rarfile-4.0-r1.ebuild
+++ b/dev-python/rarfile/rarfile-4.0-r2.ebuild
@@ -3,8 +3,8 @@
EAPI=8
-DISTUTLS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
inherit distutils-r1 pypi
DESCRIPTION="Module for RAR archive reading"
@@ -18,6 +18,9 @@ REQUIRED_USE="test? ( compressed )"
RDEPEND="compressed? ( app-arch/unrar )"
-PATCHES=( "${FILESDIR}"/${P}.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}.patch
+ "${FILESDIR}"/${P}-fix-pypy-datetime.patch
+)
distutils_enable_tests pytest