From ce62e827697209082ce10752484b528fe24c3aee Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 30 Jul 2025 09:41:51 +0200 Subject: [PATCH] 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 --- 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 6e9d4edb2614d52d5c12229049b15b1b02f41b3f..895ac2b2e61a8325e7cfd65174265e2017ab8ca5 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")