nixpkgs/pkgs/tools/security/sshuttle/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2020-07-08 00:54:40 +00:00
, python3Packages
, makeWrapper
, coreutils
, iptables
, nettools
, openssh
, procps
}:
python3Packages.buildPythonApplication rec {
2020-03-29 10:34:50 +00:00
pname = "sshuttle";
2022-09-06 11:41:55 +00:00
version = "1.1.1";
2020-03-29 10:34:50 +00:00
src = python3Packages.fetchPypi {
inherit pname version;
2022-09-06 11:41:55 +00:00
sha256 = "sha256-9aPtHlqxITx6bfhgr0HxqQOrLK+/73Hzcazc/yHmnuY=";
};
2018-08-30 09:11:33 +00:00
patches = [ ./sudo.patch ];
postPatch = ''
substituteInPlace setup.cfg \
--replace '--cov=sshuttle --cov-branch --cov-report=term-missing' ""
'';
nativeBuildInputs = [ makeWrapper python3Packages.setuptools-scm ];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
2020-07-08 00:54:40 +00:00
postInstall = ''
wrapProgram $out/bin/sshuttle \
--prefix PATH : "${lib.makeBinPath ([ coreutils openssh procps ] ++ lib.optionals stdenv.isLinux [ iptables nettools ])}" \
'';
meta = with lib; {
homepage = "https://github.com/sshuttle/sshuttle/";
description = "Transparent proxy server that works as a poor man's VPN";
longDescription = ''
Forward connections over SSH, without requiring administrator access to the
2019-03-06 00:37:33 +00:00
target network (though it does require Python 2.7, Python 3.5 or later at both ends).
Works with Linux and Mac OS and supports DNS tunneling.
'';
license = licenses.lgpl21;
maintainers = with maintainers; [ domenkozar carlosdagos SuperSandro2000 ];
};
}