guix_mirror_bot pushed a commit to branch master
in repository guix.
commit ce62e827697209082ce10752484b528fe24c3aee
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Jul 30 09:41:51 2025 +0200
gnu: shadowsocks: Fix the package.
* gnu/packages/networking.scm (shadowsocks)[arguments]
<#:tests>: Disable them.
<#:phases>: Add phase 'python-fixes.
Change-Id: I959eeb57a3859e68cf14efdf7700390143f0c4df
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/networking.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 6e9d4edb26..895ac2b2e6 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -3624,6 +3624,9 @@ asynchronous model using a modern C++ approach.")
(build-system python-build-system)
(arguments
(list
+ ;; XXX: Package is deprecated, but it might be a good thing to try and
+ ;; keep it.
+ #:tests? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-crypto-paths
@@ -3631,7 +3634,12 @@ asynchronous model using a modern C++ approach.")
(substitute* "shadowsocks/shell.py"
(("config\\.get\\('libopenssl', None\\)")
(format #f "config.get('libopenssl', ~s)"
- (search-input-file inputs "lib/libssl.so")))))))))
+ (search-input-file inputs "lib/libssl.so"))))))
+ (add-after 'unpack 'python-fixes
+ (lambda _
+ (substitute* "shadowsocks/lru_cache.py"
+ (("collections\\.MutableMapping")
+ "collections.abc.MutableMapping")))))))
(inputs (list openssl))
(home-page "https://github.com/shadowsocks/shadowsocks")
(synopsis "Fast tunnel proxy that helps you bypass firewalls")