about summary refs log tree commit diff
path: root/pkgs/development/python-modules/virtkey/default.nix
blob: 553721e83eea5d68226b8a29faa1c461a9652a7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  stdenv,
  lib,
  buildPythonPackage,
  fetchurl,
  pkg-config,
  gtk2,
  libX11,
  libXtst,
  libXi,
  libxkbfile,
  xorgproto,
}:

let
  majorVersion = "0.63";
  minorVersion = "0";
in
buildPythonPackage rec {
  pname = "virtkey";
  version = "${majorVersion}.${minorVersion}";
  format = "setuptools";

  src = fetchurl {
    url = "https://launchpad.net/virtkey/${majorVersion}/${version}/+download/virtkey-${version}.tar.gz";
    sha256 = "0hd99hrxn6bh3rxcrdnad5cqjsphrn1s6fzx91q07d44k6cg6qcr";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    gtk2
    libX11
    libXtst
    libXi
    libxkbfile
    xorgproto
  ];

  meta = with lib; {
    broken = stdenv.hostPlatform.isDarwin;
    description = "Extension to emulate keypresses and to get the layout information from the X server";
    homepage = "https://launchpad.net/virtkey";
    license = licenses.gpl3;
    maintainers = with maintainers; [ abbradar ];
  };
}