1{ lib, buildPythonPackage, fetchurl, pkgconfig, gtk2, libX11, libXtst, libXi, libxkbfile, xextproto, xproto }: 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 = [ pkgconfig ]; 16 17 buildInputs = [ gtk2 libX11 libXtst libXi libxkbfile xextproto xproto ]; 18 19 meta = with lib; { 20 description = "Extension to emulate keypresses and to get the layout information from the X server"; 21 homepage = https://launchpad.net/virtkey; 22 license = licenses.gpl3; 23 maintainers = with maintainers; [ abbradar ]; 24 }; 25}