1{ stdenv, lib, buildPythonPackage, fetchurl, pkg-config, gtk2, libX11, libXtst, libXi, libxkbfile, xorgproto }: 2 3let 4 majorVersion = "0.63"; 5 minorVersion = "0"; 6in buildPythonPackage rec { 7 pname = "virtkey"; 8 version = "${majorVersion}.${minorVersion}"; 9 10 src = fetchurl { 11 url = "https://launchpad.net/virtkey/${majorVersion}/${version}/+download/virtkey-${version}.tar.gz"; 12 sha256 = "0hd99hrxn6bh3rxcrdnad5cqjsphrn1s6fzx91q07d44k6cg6qcr"; 13 }; 14 15 nativeBuildInputs = [ pkg-config ]; 16 17 buildInputs = [ gtk2 libX11 libXtst libXi libxkbfile xorgproto ]; 18 19 meta = with lib; { 20 broken = stdenv.isDarwin; 21 description = "Extension to emulate keypresses and to get the layout information from the X server"; 22 homepage = "https://launchpad.net/virtkey"; 23 license = licenses.gpl3; 24 maintainers = with maintainers; [ abbradar ]; 25 }; 26}