python.pkgs.evdev: 0.6.4 -> 0.7.0
This commit is contained in:
parent
d831604a78
commit
2a85919079
@ -1,21 +1,24 @@
|
|||||||
{ lib, buildPythonPackage, isPy34, fetchurl, linuxHeaders }:
|
{ lib, buildPythonPackage, isPy34, fetchPypi, linuxHeaders }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.6.4";
|
pname = "evdev";
|
||||||
name = "evdev-${version}";
|
version = "0.7.0";
|
||||||
disabled = isPy34; # see http://bugs.python.org/issue21121
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchPypi {
|
||||||
url = "mirror://pypi/e/evdev/${name}.tar.gz";
|
inherit pname version;
|
||||||
sha256 = "1wkag91s8j0f45jx5n619z354n8pz8in9krn81hp7hlkhi6p8s2j";
|
sha256 = "188ahmqnh5y1f46m7pyjdmi9zfxswaggn6xga65za554d72azvap";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ linuxHeaders ];
|
buildInputs = [ linuxHeaders ];
|
||||||
|
|
||||||
patchPhase = "sed -e 's#/usr/include/linux/#${linuxHeaders}/include/linux/#g' -i setup.py";
|
patchPhase = ''
|
||||||
|
substituteInPlace setup.py --replace /usr/include/linux ${linuxHeaders}/include/linux
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
disabled = isPy34; # see http://bugs.python.org/issue21121
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Provides bindings to the generic input event interface in Linux";
|
description = "Provides bindings to the generic input event interface in Linux";
|
||||||
homepage = http://pythonhosted.org/evdev;
|
homepage = http://pythonhosted.org/evdev;
|
||||||
|
Loading…
Reference in New Issue
Block a user