depot/third_party/nixpkgs/pkgs/development/python-modules/vncdo/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pexpect,
pillow,
pycryptodomex,
pytestCheckHook,
pythonOlder,
pyvirtualdisplay,
setuptools,
twisted,
}:
buildPythonPackage rec {
pname = "vncdo";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sibson";
repo = "vncdotool";
rev = "refs/tags/v${version}";
hash = "sha256-QrD6z/g85FwaZCJ1PRn8CBKCOQcbVjQ9g0NpPIxguqk=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
pillow
pycryptodomex
twisted
];
nativeCheckInputs = [
pexpect
pytestCheckHook
pyvirtualdisplay
];
pythonImportsCheck = [ "vncdotool" ];
meta = with lib; {
description = "A command line VNC client and Python library";
homepage = "https://github.com/sibson/vncdotool";
changelog = "https://github.com/sibson/vncdotool/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ elitak ];
mainProgram = "vncdo";
platforms = with platforms; linux ++ darwin;
};
}