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

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

64 lines
1.5 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2020-07-08 03:54:40 +03:00
, python3Packages
, fetchPypi
2023-08-18 19:43:15 +03:00
, installShellFiles
2020-07-08 03:54:40 +03:00
, makeWrapper
2023-08-18 19:43:15 +03:00
, sphinx
2020-07-08 03:54:40 +03:00
, coreutils
, iptables
, nettools
, openssh
, procps
}:
python3Packages.buildPythonApplication rec {
2020-03-29 13:34:50 +03:00
pname = "sshuttle";
2022-09-06 14:41:55 +03:00
version = "1.1.1";
src = fetchPypi {
2020-03-29 13:34:50 +03:00
inherit pname version;
2022-09-06 14:41:55 +03:00
sha256 = "sha256-9aPtHlqxITx6bfhgr0HxqQOrLK+/73Hzcazc/yHmnuY=";
};
2018-08-30 12:11:33 +03:00
patches = [ ./sudo.patch ];
postPatch = ''
substituteInPlace setup.cfg \
--replace '--cov=sshuttle --cov-branch --cov-report=term-missing' ""
'';
2023-08-18 19:43:15 +03:00
nativeBuildInputs = [
installShellFiles
makeWrapper
python3Packages.setuptools-scm
sphinx
];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
2020-07-08 03:54:40 +03:00
2023-08-18 19:43:15 +03:00
postBuild = ''
make man -C docs
'';
2020-07-08 03:54:40 +03:00
postInstall = ''
2023-08-18 19:43:15 +03:00
installManPage docs/_build/man/*
2020-07-08 03:54:40 +03:00
wrapProgram $out/bin/sshuttle \
--prefix PATH : "${lib.makeBinPath ([ coreutils openssh procps ] ++ lib.optionals stdenv.isLinux [ iptables nettools ])}" \
'';
meta = with lib; {
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 03:37:33 +03: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.
'';
homepage = "https://github.com/sshuttle/sshuttle";
changelog = "https://github.com/sshuttle/sshuttle/blob/v${version}/CHANGES.rst";
license = licenses.lgpl21Plus;
2023-07-23 20:30:22 +03:00
maintainers = with maintainers; [ domenkozar carlosdagos ];
};
}