2022-12-02 08:20:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-12-26 17:43:05 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, paramiko
|
|
|
|
, pytestCheckHook
|
|
|
|
, tornado
|
|
|
|
}:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "webssh";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.6.2";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-mRestRJukaf7ti3vIs/MM/R+zpGmK551j5HAM2chBsE=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
paramiko
|
|
|
|
tornado
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-26 17:43:05 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"webssh"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test fails with AttributeError (possibly related to paramiko update)
|
|
|
|
"test_app_with_bad_host_key"
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-26 17:43:05 +00:00
|
|
|
description = "Web based SSH client";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "wssh";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/huashengdun/webssh/";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/huashengdun/webssh/releases/tag/v${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ davidtwco ];
|
2022-12-02 08:20:57 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|