2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pexpect,
|
|
|
|
pillow,
|
|
|
|
pycryptodomex,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyvirtualdisplay,
|
|
|
|
setuptools,
|
|
|
|
twisted,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "vncdo";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.2.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sibson";
|
|
|
|
repo = "vncdotool";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-QrD6z/g85FwaZCJ1PRn8CBKCOQcbVjQ9g0NpPIxguqk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
pillow
|
2024-01-02 11:29:13 +00:00
|
|
|
pycryptodomex
|
2020-04-24 23:36:52 +00:00
|
|
|
twisted
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
pexpect
|
2024-01-02 11:29:13 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pyvirtualdisplay
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "vncdotool" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-01-02 11:29:13 +00:00
|
|
|
description = "A command line VNC client and Python library";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/sibson/vncdotool";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/sibson/vncdotool/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elitak ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "vncdo";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
};
|
|
|
|
}
|