about summary refs log tree commit diff
path: root/pkgs/development/python-modules/evdev
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2018-01-03 00:27:51 +0000
committerOrivej Desh <orivej@gmx.fr>2018-01-03 01:12:23 +0000
commitd831604a783fc72e245d9b91039ac39700c6ea8b (patch)
tree9f21c4a55fe7b8b852b003f7d2a47e4d85c577c5 /pkgs/development/python-modules/evdev
parentf3bb3de2136ddbf8410f12a2733d7a9ac313b58b (diff)
downloadnixlib-d831604a783fc72e245d9b91039ac39700c6ea8b.tar
nixlib-d831604a783fc72e245d9b91039ac39700c6ea8b.tar.gz
nixlib-d831604a783fc72e245d9b91039ac39700c6ea8b.tar.bz2
nixlib-d831604a783fc72e245d9b91039ac39700c6ea8b.tar.lz
nixlib-d831604a783fc72e245d9b91039ac39700c6ea8b.tar.xz
nixlib-d831604a783fc72e245d9b91039ac39700c6ea8b.tar.zst
nixlib-d831604a783fc72e245d9b91039ac39700c6ea8b.zip
python.pkgs.evdev: move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/evdev')
-rw-r--r--pkgs/development/python-modules/evdev/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/evdev/default.nix b/pkgs/development/python-modules/evdev/default.nix
new file mode 100644
index 000000000000..98f7e3c4f7c1
--- /dev/null
+++ b/pkgs/development/python-modules/evdev/default.nix
@@ -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;
+  };
+}