diff options
Diffstat (limited to 'dev-python/python-magic')
-rw-r--r-- | dev-python/python-magic/Manifest | 3 | ||||
-rw-r--r-- | dev-python/python-magic/files/python-magic-0.4.27-fix-gzip-test.patch | 26 | ||||
-rw-r--r-- | dev-python/python-magic/python-magic-0.4.27.ebuild | 6 |
3 files changed, 33 insertions, 2 deletions
diff --git a/dev-python/python-magic/Manifest b/dev-python/python-magic/Manifest index 69a9c94f9f56..b397ed94626f 100644 --- a/dev-python/python-magic/Manifest +++ b/dev-python/python-magic/Manifest @@ -1,3 +1,4 @@ +AUX python-magic-0.4.27-fix-gzip-test.patch 1053 BLAKE2B f2f013396cfcfca6e2769af498b216da2d683f57925667ccfcdd6f1608b0bac7453b251c465eb4ffbcb53ce5297a1a44902bf2bc7d5e590070d921820a70172f SHA512 1103e053e99294fbd99c0be0e4be8378489d14a08f16bd3d4189685afe0bb435486b818ad36af6e53ceae51478990957e4fce487552796d88b48c07961775075 DIST python-magic-0.4.27.gh.tar.gz 863649 BLAKE2B 4ba22d0f8bd5e70eb37e3b46eba1b885d49682bf45d703ad7966bcc67614427ebe597e3100575f863b7e54421c6de6fc875af24a9d5b49742fe07b361b65f198 SHA512 a476730a5caa9a2a784187f57743d5cec4b1829a6a76d4d1fb4e0112caf5487888961df293bc38074ef1a5d313b0fc4aed4cc99b980f5336e8a907c44a33e84e -EBUILD python-magic-0.4.27.ebuild 786 BLAKE2B d14bec77c0fe16a2504fa27a7ee9863f47ea72a9b285eddcaa11927f42fa99f26eb5e27f793869286fcc9b39247d70d9fb4f8e4e85f3c940ec29383f5d7cd8d2 SHA512 532a1bc6e441a55f0a92d613369eb86c76c228ecb26ed76648ddc5a5be46af3f6f7b09b1aa35398f4c97c85b784e9267f95d03d003af86371c3f7d1cebb6766e +EBUILD python-magic-0.4.27.ebuild 840 BLAKE2B d65e1628bdfa6d8c4e0075888b7339f7587b52709376f66172595acddc6d2f82907e11b56bf3899f11a3ba769d306f20360f976ad71bd8d534737c83b2ffe44b SHA512 87aef46ab1d14f728cba6fb3213ee2c1809f3cdc14bc628efc77cb5b03ac6e51b6fcaf9621984bf58aa07a9df2afe249668d9109264019b73d90c9f147e19cb0 MISC metadata.xml 411 BLAKE2B 614256656c3be285f997a177b6239cc4f6c253c8708cdb7339dab99f6a21fdec0a36af90a5c8cbe39f29939cfb64b276abd572fd9687e609a26e1098bb1ceb69 SHA512 ff2c756d280d753fe614396f5dda04958b3a3d0a3d94586724d2580d5901af01ebe30e1cbb98e263ca6dd95e6043222311be375595653cbf7ccf54dff9cd971e diff --git a/dev-python/python-magic/files/python-magic-0.4.27-fix-gzip-test.patch b/dev-python/python-magic/files/python-magic-0.4.27-fix-gzip-test.patch new file mode 100644 index 000000000000..9a978146f32d --- /dev/null +++ b/dev-python/python-magic/files/python-magic-0.4.27-fix-gzip-test.patch @@ -0,0 +1,26 @@ +https://github.com/ahupp/python-magic/commit/4ffcd59113fa26d7c2e9d5897b1eef919fd4b457 + +From 4ffcd59113fa26d7c2e9d5897b1eef919fd4b457 Mon Sep 17 00:00:00 2001 +From: Adam Hupp <adam@hupp.org> +Date: Mon, 9 Jan 2023 12:55:15 -0800 +Subject: [PATCH] update test for upstream added gzip extensions + +--- a/test/python_magic_test.py ++++ b/test/python_magic_test.py +@@ -134,7 +134,7 @@ def test_extension(self): + self.assert_values(m, { + # some versions return '' for the extensions of a gz file, + # including w/ the command line. Who knows... +- 'test.gz': ('gz/tgz/tpz/zabw/svgz', '', '???'), ++ 'test.gz': ('gz/tgz/tpz/zabw/svgz/adz/kmy/xcfgz', 'gz/tgz/tpz/zabw/svgz', '', '???'), + 'name_use.jpg': 'jpeg/jpg/jpe/jfif', + }) + except NotImplementedError: +@@ -227,6 +227,5 @@ def test_pathlike(self): + m = magic.Magic(mime=True) + self.assertEqual('application/pdf', m.from_file(path)) + +- + if __name__ == '__main__': + unittest.main() + diff --git a/dev-python/python-magic/python-magic-0.4.27.ebuild b/dev-python/python-magic/python-magic-0.4.27.ebuild index 18f2483f5cce..18f913a8638a 100644 --- a/dev-python/python-magic/python-magic-0.4.27.ebuild +++ b/dev-python/python-magic/python-magic-0.4.27.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} pypy3 ) +PYTHON_COMPAT=( python3_{10..12} pypy3 ) inherit distutils-r1 @@ -31,6 +31,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${P}-fix-gzip-test.patch +) + distutils_enable_tests unittest python_test() { |