guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch core-updates updated: gnu: python-magic: Update to 0.4.27.


From: guix-commits
Subject: branch core-updates updated: gnu: python-magic: Update to 0.4.27.
Date: Mon, 24 Apr 2023 04:34:31 -0400

This is an automated email from the git hooks/post-receive script.

andreas pushed a commit to branch core-updates
in repository guix.

The following commit(s) were added to refs/heads/core-updates by this push:
     new 827df9d1dd gnu: python-magic: Update to 0.4.27.
827df9d1dd is described below

commit 827df9d1dde4f4a06e1789ec17cf0586602aa121
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sun Apr 23 15:11:24 2023 +0200

    gnu: python-magic: Update to 0.4.27.
    
    * gnu/packages/patches/python-magic-python-bytecode.patch: Remove file.
    * gnu/local.mk (dist_patch_DATA): Unregister it.
    * gnu/packages/python-xyz.scm (python-magic): Update to 0.4.27.
    [source]<patches>: Remove field.
    [#:phases]<check>: Do not invoke ‘tests.py’.
    
    Signed-off-by: Andreas Enge <andreas@enge.fr>
---
 gnu/local.mk                                          |  1 -
 .../patches/python-magic-python-bytecode.patch        | 19 -------------------
 gnu/packages/python-xyz.scm                           |  6 ++----
 3 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index fd9564477a..00ef1bfe93 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1776,7 +1776,6 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/python-pyflakes-test-location.patch     \
   %D%/packages/patches/python-flint-includes.patch             \
   %D%/packages/patches/python-libxml2-utf8.patch               \
-  %D%/packages/patches/python-magic-python-bytecode.patch      \
   %D%/packages/patches/python-memcached-syntax-warnings.patch  \
   %D%/packages/patches/python-mox3-python3.6-compat.patch      \
   %D%/packages/patches/python-parso-unit-tests-in-3.10.patch    \
diff --git a/gnu/packages/patches/python-magic-python-bytecode.patch 
b/gnu/packages/patches/python-magic-python-bytecode.patch
deleted file mode 100644
index 997fb4ee5a..0000000000
--- a/gnu/packages/patches/python-magic-python-bytecode.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-File 5.41 changed the MIME type of Python bytecode; adjust accordingly.
-
-Taken from upstream:
-
-  
https://github.com/ahupp/python-magic/commit/0ae7e7ceac0e80e03adc75c858bb378c0427331a
-
-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',
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f755cd12f4..db71ab6af5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16857,17 +16857,16 @@ for Python inspired by modern web development.")
 (define-public python-magic
   (package
     (name "python-magic")
-    (version "0.4.24")
+    (version "0.4.27")
     (home-page "https://github.com/ahupp/python-magic";)
     (source
      (origin
        (method git-fetch)
        (uri (git-reference (url home-page) (commit version)))
        (file-name (git-file-name name version))
-       (patches (search-patches "python-magic-python-bytecode.patch"))
        (sha256
         (base32
-         "17jalhjbfd600lzfz296m0nvgp6c7vx1mgz82jbzn8hgdzknf4w0"))))
+         "1x11kfn4g244fia9a7y4ly8dqv5zsxfg3l5azc54dl6gkp2bk7vx"))))
     (build-system python-build-system)
     (arguments
      '(#:phases (modify-phases %standard-phases
@@ -16889,7 +16888,6 @@ for Python inspired by modern web development.")
                       (setenv "LC_ALL" "en_US.UTF-8")
                       (if tests?
                           (with-directory-excursion "test"
-                            (invoke "python" "./test.py")
                             (invoke "python" "./libmagic_test.py"))
                           (format #t "test suite not run~%")))))))
     (native-inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]