From 73d1178084dbb4edea52e2e814e70f6335554bbd Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 09:52:17 -0400 Subject: [PATCH] pythonPackages.pyinotify: refactor move to python-modules --- .../python-modules/pyinotify/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +-------------- 2 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/pyinotify/default.nix diff --git a/pkgs/development/python-modules/pyinotify/default.nix b/pkgs/development/python-modules/pyinotify/default.nix new file mode 100644 index 00000000000..0e070d8a89d --- /dev/null +++ b/pkgs/development/python-modules/pyinotify/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "pyinotify"; + version = "0.9.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw"; + }; + + # No tests distributed + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/seb-m/pyinotify/wiki; + description = "Monitor filesystems events on Linux platforms with inotify"; + license = licenses.mit; + platforms = platforms.linux; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a0cbbfe3d24..2b4a847c39b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3368,25 +3368,7 @@ in { pyinputevent = callPackage ../development/python-modules/pyinputevent { }; - pyinotify = buildPythonPackage rec { - name = "pyinotify-${version}"; - version = "0.9.6"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/${name}/${name}.tar.gz"; - sha256 = "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw"; - }; - - # No tests distributed - doCheck = false; - - meta = { - homepage = https://github.com/seb-m/pyinotify/wiki; - description = "Monitor filesystems events on Linux platforms with inotify"; - license = licenses.mit; - platforms = platforms.linux; - }; - }; + pyinotify = callPackage ../development/python-modules/pyinotify { }; pyinsane2 = buildPythonPackage rec { name = "pyinsane2-${version}";