1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchPypi,
6 paramiko,
7 pytestCheckHook,
8 setuptools,
9 tornado,
10}:
11
12buildPythonPackage rec {
13 pname = "webssh";
14 version = "1.6.3";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-K85buvIGrTRZEMfk3IAks8QY5oHJ9f8JjxgCvv924QA=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 paramiko
26 tornado
27 ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "webssh" ];
32
33 disabledTests = [
34 # https://github.com/huashengdun/webssh/issues/412
35 "test_get_pkey_obj_with_encrypted_ed25519_key"
36 "test_get_pkey_obj_with_encrypted_new_rsa_key"
37 "test_get_pkey_obj_with_plain_new_dsa_key"
38 # BrokenPipeError: [Errno 32] Broken pipe
39 "test_app_post_form_with_large_body_size_by_multipart_form"
40 "test_app_post_form_with_large_body_size_by_urlencoded_form"
41 ];
42
43 __darwinAllowLocalNetworking = true;
44
45 meta = {
46 description = "Web based SSH client";
47 mainProgram = "wssh";
48 homepage = "https://github.com/huashengdun/webssh/";
49 changelog = "https://github.com/huashengdun/webssh/releases/tag/v${version}";
50 license = lib.licenses.mit;
51 maintainers = [ ];
52 };
53}