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 01:54:40 +01:00
, python3Packages
, makeWrapper
, coreutils
, iptables
, nettools
, openssh
, procps
}:
python3Packages.buildPythonApplication rec {
2020-03-29 11:34:50 +01:00
pname = "sshuttle";
version = "1.1.0";
2020-03-29 11:34:50 +01:00
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "sha256-IfuRvfOStQ5422uNdelbc6ydr9Nh4mV+eE5nRWEhkxU=";
};
2018-08-30 10:11:33 +01:00
patches = [ ./sudo.patch ];
postPatch = ''
substituteInPlace setup.cfg \
--replace '--cov=sshuttle --cov-branch --cov-report=term-missing' ""
'';
nativeBuildInputs = [ makeWrapper python3Packages.setuptools-scm ];
checkInputs = with python3Packages; [ pytestCheckHook ];
2020-07-08 01:54:40 +01: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 ];
};
}