summary refs log tree commit diff
path: root/pkgs/tools/security/sshuttle
diff options
context:
space:
mode:
authorAristid Breitkreuz <aristidb@gmail.com>2017-07-09 09:59:08 +0200
committerAristid Breitkreuz <aristidb@gmail.com>2017-07-09 09:59:20 +0200
commit19dfb63036b4a5c8a73ebf66b0b51c7acba07570 (patch)
tree0db0a39078f1c7c2d0245261d2fbdcdee511f25b /pkgs/tools/security/sshuttle
parentee5a17514c500244b2911c80f3d42311bdf97491 (diff)
downloadnixpkgs-19dfb63036b4a5c8a73ebf66b0b51c7acba07570.tar
nixpkgs-19dfb63036b4a5c8a73ebf66b0b51c7acba07570.tar.gz
nixpkgs-19dfb63036b4a5c8a73ebf66b0b51c7acba07570.tar.bz2
nixpkgs-19dfb63036b4a5c8a73ebf66b0b51c7acba07570.tar.lz
nixpkgs-19dfb63036b4a5c8a73ebf66b0b51c7acba07570.tar.xz
nixpkgs-19dfb63036b4a5c8a73ebf66b0b51c7acba07570.tar.zst
nixpkgs-19dfb63036b4a5c8a73ebf66b0b51c7acba07570.zip
sshuttle: 0.78.0 -> 0.78.3, use py3 for tests to succeed
Diffstat (limited to 'pkgs/tools/security/sshuttle')
-rw-r--r--pkgs/tools/security/sshuttle/default.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/tools/security/sshuttle/default.nix b/pkgs/tools/security/sshuttle/default.nix
index daa02497d0f..65d9165a26b 100644
--- a/pkgs/tools/security/sshuttle/default.nix
+++ b/pkgs/tools/security/sshuttle/default.nix
@@ -1,23 +1,29 @@
-{ stdenv, pythonPackages, fetchurl, makeWrapper, pandoc
+{ stdenv, python3Packages, fetchurl, makeWrapper, pandoc
 , coreutils, iptables, nettools, openssh, procps }:
   
-pythonPackages.buildPythonApplication rec {
+python3Packages.buildPythonApplication rec {
   name = "sshuttle-${version}";
-  version = "0.78.0";
+  version = "0.78.3";
 
   src = fetchurl {
-    sha256 = "18hrwi2gyri1n2rq0nghvv7hfhbhh5h67am89524vc1yyx40vn3b";
+    sha256 = "12xyq5h77b57cnkljdk8qyjxzys512b73019s20x6ck5brj1m8wa";
     url = "mirror://pypi/s/sshuttle/${name}.tar.gz";
   };
 
   patches = [ ./sudo.patch ];
 
-  propagatedBuildInputs = with pythonPackages; [ PyXAPI mock pytest ];
-  nativeBuildInputs = [ makeWrapper pandoc pythonPackages.setuptools_scm ];
+  propagatedBuildInputs = with python3Packages; [ mock pytest ];
+  nativeBuildInputs = [ makeWrapper pandoc python3Packages.setuptools_scm ];
   buildInputs =
     [ coreutils openssh ] ++
     stdenv.lib.optionals stdenv.isLinux [ iptables nettools procps ];
 
+  checkInputs = with python3Packages; [ pytest pytestrunner ];
+
+  # Tests only run with Python 3. Server-side Python 2 still works if client
+  # uses Python 3, so it should be fine.
+  doCheck = true;
+
   postInstall = let
     mapPath = f: x: stdenv.lib.concatStringsSep ":" (map f x);
   in ''