summary refs log tree commit diff
path: root/pkgs/development/python-modules/webssh/default.nix
blob: dd7fcaa5bcf90808bfb1bb0a225d074f332765c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, paramiko
, pytestCheckHook
, tornado
}:

buildPythonPackage rec {
  pname = "webssh";
  version = "1.6.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-mRestRJukaf7ti3vIs/MM/R+zpGmK551j5HAM2chBsE=";
  };

  propagatedBuildInputs = [
    paramiko
    tornado
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "webssh"
  ];

  disabledTests = [
    # Test fails with AttributeError (possibly related to paramiko update)
    "test_app_with_bad_host_key"
  ];

  meta = with lib; {
    description = "Web based SSH client";
    homepage = "https://github.com/huashengdun/webssh/";
    changelog = "https://github.com/huashengdun/webssh/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ davidtwco ];
    broken = stdenv.isDarwin;
  };
}