~ruther/guix-local

ce62e827697209082ce10752484b528fe24c3aee — Nicolas Graves 1 year, 3 months ago 188ef6c
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 <sharlatanus@gmail.com>
1 files changed, 9 insertions(+), 1 deletions(-)

M gnu/packages/networking.scm
M gnu/packages/networking.scm => gnu/packages/networking.scm +9 -1
@@ 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")