From 968b1ab947b5016304b4ab81bea257bb2442e9c6 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 16:32:16 -0400 Subject: [PATCH] pythonPackages.gipc: refactor move to python-modules --- .../python-modules/gipc/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 26 +------------- 2 files changed, 36 insertions(+), 25 deletions(-) create mode 100644 pkgs/development/python-modules/gipc/default.nix diff --git a/pkgs/development/python-modules/gipc/default.nix b/pkgs/development/python-modules/gipc/default.nix new file mode 100644 index 000000000000..9780b46fa5a0 --- /dev/null +++ b/pkgs/development/python-modules/gipc/default.nix @@ -0,0 +1,35 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +, gevent +}: + +buildPythonPackage rec { + pname = "gipc"; + version = "0.5.0"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "08c35xzv7nr12d9xwlywlbyzzz2igy0yy6y52q2nrkmh5d4slbpc"; + }; + + propagatedBuildInputs = [ gevent ]; + + meta = with stdenv.lib; { + description = "gevent-cooperative child processes and IPC"; + longDescription = '' + Usage of Python's multiprocessing package in a gevent-powered + application may raise problems and most likely breaks the application + in various subtle ways. gipc (pronunciation "gipsy") is developed with + the motivation to solve many of these issues transparently. With gipc, + multiprocessing. Process-based child processes can safely be created + anywhere within your gevent-powered application. + ''; + homepage = http://gehrcke.de/gipc; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fe9ab57c20fd..890ca2789a2d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2380,31 +2380,7 @@ in { ghdiff = callPackage ../development/python-modules/ghdiff { }; - gipc = buildPythonPackage rec { - name = "gipc-0.5.0"; - disabled = !isPy27; - - src = pkgs.fetchurl { - url = "mirror://pypi/g/gipc/${name}.zip"; - sha256 = "08c35xzv7nr12d9xwlywlbyzzz2igy0yy6y52q2nrkmh5d4slbpc"; - }; - - propagatedBuildInputs = with self; [ gevent ]; - - meta = { - description = "gevent-cooperative child processes and IPC"; - longDescription = '' - Usage of Python's multiprocessing package in a gevent-powered - application may raise problems and most likely breaks the application - in various subtle ways. gipc (pronunciation "gipsy") is developed with - the motivation to solve many of these issues transparently. With gipc, - multiprocessing. Process-based child processes can safely be created - anywhere within your gevent-powered application. - ''; - homepage = http://gehrcke.de/gipc; - license = licenses.mit; - }; - }; + gipc = callPackage ../development/python-modules/gipc { }; git-sweep = buildPythonPackage rec { name = "git-sweep-0.1.1";