diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/webssh')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/webssh/default.nix | 32 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/webssh/remove-typo-in-test-case.patch | 18 |
2 files changed, 32 insertions, 18 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/webssh/default.nix b/nixpkgs/pkgs/development/python-modules/webssh/default.nix index 4681b186c9ca..b18dcd38c2a7 100644 --- a/nixpkgs/pkgs/development/python-modules/webssh/default.nix +++ b/nixpkgs/pkgs/development/python-modules/webssh/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, paramiko -, pytestCheckHook -, tornado +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + paramiko, + pytestCheckHook, + tornado, }: buildPythonPackage rec { @@ -17,23 +18,18 @@ buildPythonPackage rec { hash = "sha256-mRestRJukaf7ti3vIs/MM/R+zpGmK551j5HAM2chBsE="; }; + patches = [ + ./remove-typo-in-test-case.patch + ]; + propagatedBuildInputs = [ paramiko tornado ]; - nativeCheckInputs = [ - pytestCheckHook - ]; - - pythonImportsCheck = [ - "webssh" - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - # Test fails with AttributeError (possibly related to paramiko update) - "test_app_with_bad_host_key" - ]; + pythonImportsCheck = [ "webssh" ]; meta = with lib; { description = "Web based SSH client"; diff --git a/nixpkgs/pkgs/development/python-modules/webssh/remove-typo-in-test-case.patch b/nixpkgs/pkgs/development/python-modules/webssh/remove-typo-in-test-case.patch new file mode 100644 index 000000000000..ac7bd94e5b39 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/webssh/remove-typo-in-test-case.patch @@ -0,0 +1,18 @@ +--- + tests/test_handler.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_handler.py b/tests/test_handler.py +index a9ad924..950e672 100644 +--- a/tests/test_handler.py ++++ b/tests/test_handler.py +@@ -336,5 +336,5 @@ class TestIndexHandler(unittest.TestCase): + ssh.exec_command.return_value = (stdin, stdout, stderr) + + encoding = IndexHandler.get_default_encoding(handler, ssh) +- self.assertEquals("utf-8", encoding) ++ self.assertEqual("utf-8", encoding) + +-- +2.44.0 + |