nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pexpect,
6 pillow,
7 pycryptodomex,
8 pytestCheckHook,
9 pyvirtualdisplay,
10 setuptools,
11 twisted,
12}:
13
14buildPythonPackage rec {
15 pname = "vncdo";
16 version = "1.2.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "sibson";
21 repo = "vncdotool";
22 tag = "v${version}";
23 hash = "sha256-QrD6z/g85FwaZCJ1PRn8CBKCOQcbVjQ9g0NpPIxguqk=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 pillow
30 pycryptodomex
31 twisted
32 ];
33
34 nativeCheckInputs = [
35 pexpect
36 pytestCheckHook
37 pyvirtualdisplay
38 ];
39
40 pythonImportsCheck = [ "vncdotool" ];
41
42 meta = {
43 description = "Command line VNC client and Python library";
44 homepage = "https://github.com/sibson/vncdotool";
45 changelog = "https://github.com/sibson/vncdotool/releases/tag/v${version}";
46 license = lib.licenses.mit;
47 maintainers = [ ];
48 mainProgram = "vncdo";
49 platforms = with lib.platforms; linux ++ darwin;
50 };
51}