mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
Revert "gnu: Remove python-msgpack-transitional."
This reverts commit d5ae6739fd
.
It turned out that 'poetry' requires this transitional msgpack package:
https://issues.guix.gnu.org/53228
Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
175915bb44
commit
66ab299a07
1 changed files with 34 additions and 0 deletions
|
@ -10923,6 +10923,40 @@ (define-public python-msgpack
|
||||||
(home-page "https://pypi.org/project/msgpack/")
|
(home-page "https://pypi.org/project/msgpack/")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
;; This msgpack library's name changed from "python-msgpack" to "msgpack" with
|
||||||
|
;; release 0.5. Some packages like borg still call it by the old name for now.
|
||||||
|
;; <https://bugs.gnu.org/30662>
|
||||||
|
(define-public python-msgpack-transitional
|
||||||
|
(package
|
||||||
|
(inherit python-msgpack)
|
||||||
|
(name "python-msgpack-transitional")
|
||||||
|
(version "0.5.6")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (pypi-uri "msgpack" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments python-msgpack)
|
||||||
|
((#:phases phases)
|
||||||
|
`(modify-phases ,phases
|
||||||
|
(add-after 'unpack 'configure-transitional
|
||||||
|
(lambda _
|
||||||
|
;; Keep using the old name.
|
||||||
|
(substitute* "setup.py"
|
||||||
|
(("TRANSITIONAL = False")
|
||||||
|
"TRANSITIONAL = 1"))
|
||||||
|
;; This old version is not compatible with Python 3.9
|
||||||
|
(substitute* '("test/test_buffer.py" "test/test_extension.py")
|
||||||
|
((".tostring\\(") ".tobytes("))
|
||||||
|
(substitute* '("test/test_buffer.py" "test/test_extension.py")
|
||||||
|
((".fromstring\\(") ".frombytes("))
|
||||||
|
#t))))))))
|
||||||
|
|
||||||
|
(define-public python2-msgpack
|
||||||
|
(package-with-python2 python-msgpack))
|
||||||
|
|
||||||
(define-public python-netaddr
|
(define-public python-netaddr
|
||||||
(package
|
(package
|
||||||
(name "python-netaddr")
|
(name "python-netaddr")
|
||||||
|
|
Loading…
Reference in a new issue