1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/development/python-modules/virtkey/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

26 lines
832 B
Nix

{ lib, buildPythonPackage, fetchurl, pkgconfig, gtk2, libX11, libXtst, libXi, libxkbfile, xextproto, xproto }:
let
majorVersion = "0.63";
minorVersion = "0";
in buildPythonPackage rec {
pname = "virtkey";
version = "${majorVersion}.${minorVersion}";
src = fetchurl {
url = "https://launchpad.net/virtkey/${majorVersion}/${version}/+download/virtkey-${version}.tar.gz";
sha256 = "0hd99hrxn6bh3rxcrdnad5cqjsphrn1s6fzx91q07d44k6cg6qcr";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk2 libX11 libXtst libXi libxkbfile xextproto xproto ];
meta = with lib; {
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 ];
};
}