mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 12:00:35 +02:00
gnu: python-file: Work around "double encoding" bug in file@5.28.
* gnu/packages/patches/python-file-double-encoding-bug.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/python.scm (python-file)[source]: Use it. (python2-file)[source]: Use the source of FILE directly, without the patch.
This commit is contained in:
parent
00bf74be05
commit
7ffa5d4a2d
3 changed files with 56 additions and 0 deletions
|
@ -6459,6 +6459,10 @@ Python's @code{ctypes} foreign function interface (FFI).")
|
|||
(package
|
||||
(inherit file)
|
||||
(name "python-file")
|
||||
(source (origin
|
||||
(inherit (package-source file))
|
||||
;; This patch should not be applied to python2-file.
|
||||
(patches (search-patches "python-file-double-encoding-bug.patch"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
'(#:tests? #f ;no tests
|
||||
|
@ -6487,6 +6491,7 @@ serve the same purpose: provide Python bindings for libmagic.")
|
|||
(let ((base (package-with-python2 (strip-python2-variant python-file))))
|
||||
(package
|
||||
(inherit base)
|
||||
(source (package-source file))
|
||||
(native-inputs
|
||||
`(("python2-setuptools" ,python2-setuptools)
|
||||
,@(package-native-inputs base))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue