From cd3b84706b988b3a39419923389c67cfc81e1386 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 09:49:50 -0400 Subject: [PATCH] pythonPackages.pyinputevent: refactor move to python-modules --- .../python-modules/pyinputevent/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +------------- 2 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/pyinputevent/default.nix diff --git a/pkgs/development/python-modules/pyinputevent/default.nix b/pkgs/development/python-modules/pyinputevent/default.nix new file mode 100644 index 000000000000..4709cf0d1167 --- /dev/null +++ b/pkgs/development/python-modules/pyinputevent/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + name = "pyinputevent"; + version = "2016-10-18"; + + src = fetchFromGitHub { + owner = "ntzrmtthihu777"; + repo = "pyinputevent"; + rev = "d2075fa5db5d8a402735fe788bb33cf9fe272a5b"; + sha256 = "0rkis0xp8f9jc00x7jb9kbvhdla24z1vl30djqa6wy6fx0cr6sib"; + }; + + meta = with stdenv.lib; { + homepage = "https://github.com/ntzrmtthihu777/pyinputevent"; + description = "Python interface to the Input Subsystem's input_event and uinput"; + license = licenses.bsd3; + platforms = platforms.linux; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 18a77520fe53..a0cbbfe3d241 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3366,23 +3366,7 @@ in { PyICU = callPackage ../development/python-modules/pyicu { }; - pyinputevent = buildPythonPackage rec { - name = "pyinputevent-2016-10-18"; - - src = pkgs.fetchFromGitHub { - owner = "ntzrmtthihu777"; - repo = "pyinputevent"; - rev = "d2075fa5db5d8a402735fe788bb33cf9fe272a5b"; - sha256 = "0rkis0xp8f9jc00x7jb9kbvhdla24z1vl30djqa6wy6fx0cr6sib"; - }; - - meta = { - homepage = "https://github.com/ntzrmtthihu777/pyinputevent"; - description = "Python interface to the Input Subsystem's input_event and uinput"; - license = licenses.bsd3; - platforms = platforms.linux; - }; - }; + pyinputevent = callPackage ../development/python-modules/pyinputevent { }; pyinotify = buildPythonPackage rec { name = "pyinotify-${version}";