From 44d15901d771b2df86b9e74a24f6f5246c32f828 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Mon, 15 Apr 2024 21:34:05 +0400 Subject: [PATCH] =?UTF-8?q?sshuttle:=201.1.1=20=E2=86=92=201.1.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/tools/security/sshuttle/default.nix | 12 +++++++----- pkgs/tools/security/sshuttle/sudo.patch | 14 +++++++------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/pkgs/tools/security/sshuttle/default.nix b/pkgs/tools/security/sshuttle/default.nix index d937421adb01..11927410f6b7 100644 --- a/pkgs/tools/security/sshuttle/default.nix +++ b/pkgs/tools/security/sshuttle/default.nix @@ -1,7 +1,7 @@ { lib , stdenv , python3Packages -, fetchPypi +, fetchFromGitHub , installShellFiles , makeWrapper , sphinx @@ -14,11 +14,13 @@ python3Packages.buildPythonApplication rec { pname = "sshuttle"; - version = "1.1.1"; + version = "1.1.2"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-9aPtHlqxITx6bfhgr0HxqQOrLK+/73Hzcazc/yHmnuY="; + src = fetchFromGitHub { + owner = "sshuttle"; + repo = "sshuttle"; + rev = "v${version}"; + hash = "sha256-7jiDTjtL4FiQ4GimSPtUDKPUA29l22a7XILN/s4/DQY="; }; patches = [ ./sudo.patch ]; diff --git a/pkgs/tools/security/sshuttle/sudo.patch b/pkgs/tools/security/sshuttle/sudo.patch index d00aab087948..f8e08ef26843 100644 --- a/pkgs/tools/security/sshuttle/sudo.patch +++ b/pkgs/tools/security/sshuttle/sudo.patch @@ -1,11 +1,11 @@ -diff --git a/sshuttle/client.py b/sshuttle/client.py -index cab5b1c..e89f8a6 100644 ---- a/sshuttle/client.py -+++ b/sshuttle/client.py -@@ -192,7 +192,7 @@ class FirewallClient: - +diff --git i/sshuttle/client.py w/sshuttle/client.py +index 29c3dfa..da813ed 100644 +--- i/sshuttle/client.py ++++ w/sshuttle/client.py +@@ -209,7 +209,7 @@ class FirewallClient: + def __init__(self, method_name, sudo_pythonpath): self.auto_nets = [] - + - argvbase = ([sys.executable, sys.argv[0]] + + argvbase = ([sys.argv[0]] + ['-v'] * (helpers.verbose or 0) +