From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Andreas Enge <andreas@enge.fr>
Cc: 63026@debbugs.gnu.org, guix-devel@gnu.org
Subject: [bug#63026] [PATCH 0/2] Update gfeeds to 2.2.0.
Date: Sun, 23 Apr 2023 15:11:24 +0200 [thread overview]
Message-ID: <409a1b9a4f5484ff1dfec28e1982f76ef2b07959.camel@gmail.com> (raw)
In-Reply-To: <ZETZF5syx/p0tNAr@jurong>
[-- Attachment #1: Type: text/plain, Size: 480 bytes --]
Am Sonntag, dem 23.04.2023 um 09:07 +0200 schrieb Andreas Enge:
> Hello Liliana,
>
> Am Sun, Apr 23, 2023 at 01:45:19AM +0200 schrieb Liliana Marie
> Prikler:
> > as with the recent update to Evolution, this is an update to get a
> > package into a working state again.
>
> gfeeds has python-magic as input, which fails on the soon to be
> merged core-updates. It would be interesting if you could have a look
> at this package. Thanks!
Patch is attached.
Cheers
[-- Attachment #2: 0001-gnu-python-magic-Update-to-0.4.27.patch --]
[-- Type: text/x-patch, Size: 3959 bytes --]
From 7c2b2abd1b6168941a102ac30581bb607c841bd8 Mon Sep 17 00:00:00 2001
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
Date: Sun, 23 Apr 2023 15:07:39 +0200
Subject: [PATCH core-updates] gnu: python-magic: Update to 0.4.27.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* 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’.
---
gnu/local.mk | 1 -
.../python-magic-python-bytecode.patch | 19 -------------------
gnu/packages/python-xyz.scm | 6 ++----
3 files changed, 2 insertions(+), 24 deletions(-)
delete mode 100644 gnu/packages/patches/python-magic-python-bytecode.patch
diff --git a/gnu/local.mk b/gnu/local.mk
index a2b7defe30..fcb3acd212 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1774,7 +1774,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 c623ce3135..685e1df38f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16863,17 +16863,16 @@ (define-public python-textual
(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
@@ -16895,7 +16894,6 @@ (define-public python-magic
(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
--
2.39.2
next prev parent reply other threads:[~2023-04-23 13:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-22 23:45 [PATCH 0/2] Update gfeeds to 2.2.0 Liliana Marie Prikler
2023-04-23 7:07 ` Andreas Enge
2023-04-23 13:11 ` Liliana Marie Prikler [this message]
2023-04-24 8:37 ` [bug#63026] " Andreas Enge
2023-04-24 16:47 ` Liliana Marie Prikler
2023-04-24 16:56 ` Andreas Enge
2023-04-25 19:15 ` bug#63026: " Liliana Marie Prikler
-- strict thread matches above, loose matches on Subject: below --
2023-04-22 23:45 [bug#63026] " Liliana Marie Prikler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=409a1b9a4f5484ff1dfec28e1982f76ef2b07959.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=63026@debbugs.gnu.org \
--cc=andreas@enge.fr \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.