Skip to content

Commit 19dfb63

Browse files
committedJul 9, 2017
sshuttle: 0.78.0 -> 0.78.3, use py3 for tests to succeed
1 parent ee5a175 commit 19dfb63

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed
 

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

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
1-
{ stdenv, pythonPackages, fetchurl, makeWrapper, pandoc
1+
{ stdenv, python3Packages, fetchurl, makeWrapper, pandoc
22
, coreutils, iptables, nettools, openssh, procps }:
33

4-
pythonPackages.buildPythonApplication rec {
4+
python3Packages.buildPythonApplication rec {
55
name = "sshuttle-${version}";
6-
version = "0.78.0";
6+
version = "0.78.3";
77

88
src = fetchurl {
9-
sha256 = "18hrwi2gyri1n2rq0nghvv7hfhbhh5h67am89524vc1yyx40vn3b";
9+
sha256 = "12xyq5h77b57cnkljdk8qyjxzys512b73019s20x6ck5brj1m8wa";
1010
url = "mirror://pypi/s/sshuttle/${name}.tar.gz";
1111
};
1212

1313
patches = [ ./sudo.patch ];
1414

15-
propagatedBuildInputs = with pythonPackages; [ PyXAPI mock pytest ];
16-
nativeBuildInputs = [ makeWrapper pandoc pythonPackages.setuptools_scm ];
15+
propagatedBuildInputs = with python3Packages; [ mock pytest ];
16+
nativeBuildInputs = [ makeWrapper pandoc python3Packages.setuptools_scm ];
1717
buildInputs =
1818
[ coreutils openssh ] ++
1919
stdenv.lib.optionals stdenv.isLinux [ iptables nettools procps ];
2020

21+
checkInputs = with python3Packages; [ pytest pytestrunner ];
22+
23+
# Tests only run with Python 3. Server-side Python 2 still works if client
24+
# uses Python 3, so it should be fine.
25+
doCheck = true;
26+
2127
postInstall = let
2228
mapPath = f: x: stdenv.lib.concatStringsSep ":" (map f x);
2329
in ''

0 commit comments

Comments
 (0)
Please sign in to comment.