python.pkgs.python-uinput : move to separate expression

This commit is contained in:
wisut hantanong 2017-07-19 18:23:11 +07:00
parent 84c3055620
commit ccf0468a84
2 changed files with 25 additions and 20 deletions

View File

@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi
, udev }:
buildPythonPackage rec {
pname = "python-uinput";
version = "0.11.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "033zqiypjz0nigav6vz0s57pbzikvds55mxphrdpkdbpdikjnfcr";
};
buildInputs = [ udev ];
NIX_CFLAGS_LINK = [ "-ludev" ];
meta = with stdenv.lib; {
description = "Pythonic API to Linux uinput kernel module";
homepage = "http://tjjr.fi/sw/python-uinput/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ abbradar ];
};
}

View File

@ -323,26 +323,7 @@ in {
python-gnupg = callPackage ../development/python-modules/python-gnupg {};
python-uinput = buildPythonPackage rec {
name = "python-uinput-${version}";
version = "0.11.2";
src = pkgs.fetchurl {
url = "mirror://pypi/p/python-uinput/${name}.tar.gz";
sha256 = "033zqiypjz0nigav6vz0s57pbzikvds55mxphrdpkdbpdikjnfcr";
};
buildInputs = [ pkgs.udev ];
NIX_CFLAGS_LINK = [ "-ludev" ];
meta = with stdenv.lib; {
description = "Pythonic API to Linux uinput kernel module";
homepage = "http://tjjr.fi/sw/python-uinput/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ abbradar ];
};
};
python-uinput = callPackage ../development/python-modules/python-uinput {};
python-sybase = buildPythonPackage rec {
name = "python-sybase-${version}";