nixpkgs/pkgs/development/python-modules/webssh/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

48 lines
933 B
Nix

{ 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";
mainProgram = "wssh";
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;
};
}