python.pkgs.evdev: move to python-modules
This commit is contained in:
parent
f3bb3de213
commit
d831604a78
26
pkgs/development/python-modules/evdev/default.nix
Normal file
26
pkgs/development/python-modules/evdev/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ lib, buildPythonPackage, isPy34, fetchurl, linuxHeaders }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "0.6.4";
|
||||||
|
name = "evdev-${version}";
|
||||||
|
disabled = isPy34; # see http://bugs.python.org/issue21121
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://pypi/e/evdev/${name}.tar.gz";
|
||||||
|
sha256 = "1wkag91s8j0f45jx5n619z354n8pz8in9krn81hp7hlkhi6p8s2j";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ linuxHeaders ];
|
||||||
|
|
||||||
|
patchPhase = "sed -e 's#/usr/include/linux/#${linuxHeaders}/include/linux/#g' -i setup.py";
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Provides bindings to the generic input event interface in Linux";
|
||||||
|
homepage = http://pythonhosted.org/evdev;
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ goibhniu ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -4546,30 +4546,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
evdev = buildPythonPackage rec {
|
evdev = callPackage ../development/python-modules/evdev {};
|
||||||
version = "0.6.4";
|
|
||||||
name = "evdev-${version}";
|
|
||||||
disabled = isPy34; # see http://bugs.python.org/issue21121
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/e/evdev/${name}.tar.gz";
|
|
||||||
sha256 = "1wkag91s8j0f45jx5n619z354n8pz8in9krn81hp7hlkhi6p8s2j";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pkgs.linuxHeaders ];
|
|
||||||
|
|
||||||
patchPhase = "sed -e 's#/usr/include/linux/#${pkgs.linuxHeaders}/include/linux/#g' -i setup.py";
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Provides bindings to the generic input event interface in Linux";
|
|
||||||
homepage = http://pythonhosted.org/evdev;
|
|
||||||
license = licenses.bsd3;
|
|
||||||
maintainers = with maintainers; [ goibhniu ];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
eve = callPackage ../development/python-modules/eve {};
|
eve = callPackage ../development/python-modules/eve {};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user