python3-magic: update to 0.4.25.
This commit is contained in:
parent
7f2e034af7
commit
8d37da3f48
2 changed files with 6 additions and 35 deletions
|
@ -1,24 +0,0 @@
|
||||||
From 0ae7e7ceac0e80e03adc75c858bb378c0427331a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Martin Liska <mliska@suse.cz>
|
|
||||||
Date: Fri, 22 Oct 2021 09:47:32 +0200
|
|
||||||
Subject: [PATCH] Support file 5.41.
|
|
||||||
|
|
||||||
In https://github.com/file/file/commit/7d9b0f0d853957ad88dae0f440fecd58d2740ca7,
|
|
||||||
the MIME was changed for Python bytecode.
|
|
||||||
---
|
|
||||||
test/test.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/test/test.py b/test/test.py
|
|
||||||
index 0c4621c..e443b84 100755
|
|
||||||
--- a/test/test.py
|
|
||||||
+++ b/test/test.py
|
|
||||||
@@ -90,7 +90,7 @@ def test_mime_types(self):
|
|
||||||
try:
|
|
||||||
m = magic.Magic(mime=True)
|
|
||||||
self.assert_values(m, {
|
|
||||||
- 'magic._pyc_': ('application/octet-stream', 'text/x-bytecode.python'),
|
|
||||||
+ 'magic._pyc_': ('application/octet-stream', 'text/x-bytecode.python', 'application/x-bytecode.python'),
|
|
||||||
'test.pdf': 'application/pdf',
|
|
||||||
'test.gz': ('application/gzip', 'application/x-gzip'),
|
|
||||||
'test.snappy.parquet': 'application/octet-stream',
|
|
|
@ -1,28 +1,23 @@
|
||||||
# Template file for 'python3-magic'
|
# Template file for 'python3-magic'
|
||||||
pkgname=python3-magic
|
pkgname=python3-magic
|
||||||
version=0.4.24
|
version=0.4.25
|
||||||
revision=2
|
revision=1
|
||||||
wrksrc=python-magic-$version
|
wrksrc=python-magic-$version
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools"
|
||||||
makedepends="libmagic"
|
makedepends="libmagic"
|
||||||
depends="python3"
|
depends="python3 libmagic"
|
||||||
|
checkdepends="python3-pytest"
|
||||||
short_desc="File type identification using libmagic (Python3)"
|
short_desc="File type identification using libmagic (Python3)"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/ahupp/python-magic"
|
homepage="https://github.com/ahupp/python-magic"
|
||||||
changelog="https://raw.githubusercontent.com/ahupp/python-magic/master/CHANGELOG"
|
changelog="https://raw.githubusercontent.com/ahupp/python-magic/master/CHANGELOG"
|
||||||
distfiles="https://github.com/ahupp/python-magic/archive/${version}.tar.gz"
|
distfiles="https://github.com/ahupp/python-magic/archive/${version}.tar.gz"
|
||||||
checksum=48b70b62caa8b911c8c79a1d06ab618037f00d09ac891b7490d0d890ff6e0632
|
checksum=0c1f483995067ffff268103f8bb6860d2f42aa3a5a9b906eaf34bcce1de36329
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
cd test/
|
( cd test/; python3 -m pytest )
|
||||||
# based on test/run.py but that requires python2 and other ugly things
|
|
||||||
(
|
|
||||||
export LC_ALL=en_US.UTF-8 PYTHONPATH=..
|
|
||||||
python3 test.py
|
|
||||||
python3 libmagic_test.py
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue