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:31:01 +0000
committerOrivej Desh <orivej@gmx.fr>2018-01-03 01:12:23 +0000
commit2a859190795ac2e64a51f93354d891977ba8a344 (patch)
tree56fcd72f6ca4540b9c7f0055d0880bdb2bfe7ebe /pkgs/development/python-modules/evdev
parentd831604a783fc72e245d9b91039ac39700c6ea8b (diff)
downloadnixpkgs-2a859190795ac2e64a51f93354d891977ba8a344.tar
nixpkgs-2a859190795ac2e64a51f93354d891977ba8a344.tar.gz
nixpkgs-2a859190795ac2e64a51f93354d891977ba8a344.tar.bz2
nixpkgs-2a859190795ac2e64a51f93354d891977ba8a344.tar.lz
nixpkgs-2a859190795ac2e64a51f93354d891977ba8a344.tar.xz
nixpkgs-2a859190795ac2e64a51f93354d891977ba8a344.tar.zst
nixpkgs-2a859190795ac2e64a51f93354d891977ba8a344.zip
python.pkgs.evdev: 0.6.4 -> 0.7.0
Diffstat (limited to 'pkgs/development/python-modules/evdev')
-rw-r--r--pkgs/development/python-modules/evdev/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/evdev/default.nix b/pkgs/development/python-modules/evdev/default.nix
index 98f7e3c4f7c..250a2f55932 100644
--- a/pkgs/development/python-modules/evdev/default.nix
+++ b/pkgs/development/python-modules/evdev/default.nix
@@ -1,21 +1,24 @@
-{ lib, buildPythonPackage, isPy34, fetchurl, linuxHeaders }:
+{ lib, buildPythonPackage, isPy34, fetchPypi, linuxHeaders }:
 
 buildPythonPackage rec {
-  version = "0.6.4";
-  name = "evdev-${version}";
-  disabled = isPy34;  # see http://bugs.python.org/issue21121
+  pname = "evdev";
+  version = "0.7.0";
 
-  src = fetchurl {
-    url = "mirror://pypi/e/evdev/${name}.tar.gz";
-    sha256 = "1wkag91s8j0f45jx5n619z354n8pz8in9krn81hp7hlkhi6p8s2j";
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "188ahmqnh5y1f46m7pyjdmi9zfxswaggn6xga65za554d72azvap";
   };
 
   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;
 
+  disabled = isPy34;  # see http://bugs.python.org/issue21121
+
   meta = with lib; {
     description = "Provides bindings to the generic input event interface in Linux";
     homepage = http://pythonhosted.org/evdev;