diff options
author | Orivej Desh <orivej@gmx.fr> | 2018-01-03 00:31:01 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2018-01-03 01:12:23 +0000 |
commit | 2a859190795ac2e64a51f93354d891977ba8a344 (patch) | |
tree | 56fcd72f6ca4540b9c7f0055d0880bdb2bfe7ebe /pkgs/development/python-modules | |
parent | d831604a783fc72e245d9b91039ac39700c6ea8b (diff) | |
download | nixlib-2a859190795ac2e64a51f93354d891977ba8a344.tar nixlib-2a859190795ac2e64a51f93354d891977ba8a344.tar.gz nixlib-2a859190795ac2e64a51f93354d891977ba8a344.tar.bz2 nixlib-2a859190795ac2e64a51f93354d891977ba8a344.tar.lz nixlib-2a859190795ac2e64a51f93354d891977ba8a344.tar.xz nixlib-2a859190795ac2e64a51f93354d891977ba8a344.tar.zst nixlib-2a859190795ac2e64a51f93354d891977ba8a344.zip |
python.pkgs.evdev: 0.6.4 -> 0.7.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/evdev/default.nix | 19 |
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 98f7e3c4f7c1..250a2f559325 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; |