From cd411946542e7a3dfef15a317375bc0a449be07e Mon Sep 17 00:00:00 2001 From: tekeri <47343275+tekeri@users.noreply.github.com> Date: Mon, 11 Nov 2019 22:09:58 +0900 Subject: [PATCH] circus: fix incompatible dependency of python-circus (#73199) * circus: fix incompatible dependency of python-circus * circus: move out of python packages set * circus: remove directly used python packages arguments --- .../networking}/circus/default.nix | 14 ++++++++------ pkgs/top-level/all-packages.nix | 2 ++ pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 10 insertions(+), 8 deletions(-) rename pkgs/{development/python-modules => tools/networking}/circus/default.nix (65%) diff --git a/pkgs/development/python-modules/circus/default.nix b/pkgs/tools/networking/circus/default.nix similarity index 65% rename from pkgs/development/python-modules/circus/default.nix rename to pkgs/tools/networking/circus/default.nix index a4f96ccaf68..10edc92a995 100644 --- a/pkgs/development/python-modules/circus/default.nix +++ b/pkgs/tools/networking/circus/default.nix @@ -1,7 +1,10 @@ -{ stdenv, buildPythonPackage, fetchPypi -, iowait, psutil, pyzmq, tornado, mock }: +{ stdenv, python3Packages }: -buildPythonPackage rec { +let + inherit (python3Packages) buildPythonApplication fetchPypi iowait psutil pyzmq tornado_4 mock; +in + +buildPythonApplication rec { pname = "circus"; version = "0.15.0"; @@ -13,15 +16,14 @@ buildPythonPackage rec { postPatch = '' # relax version restrictions to fix build substituteInPlace setup.py \ - --replace "pyzmq>=13.1.0,<17.0" "pyzmq>13.1.0" \ - --replace "tornado>=3.0,<5.0" "tornado>=3.0" + --replace "pyzmq>=13.1.0,<17.0" "pyzmq>13.1.0" ''; checkInputs = [ mock ]; doCheck = false; # weird error - propagatedBuildInputs = [ iowait psutil pyzmq tornado ]; + propagatedBuildInputs = [ iowait psutil pyzmq tornado_4 ]; meta = with stdenv.lib; { description = "A process and socket manager"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c17dca4db3f..5b1672b41b6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2311,6 +2311,8 @@ in buildGoModule = buildGo112Module; }; + circus = callPackage ../tools/networking/circus { }; + # Cleanup before 20.03: citrix_receiver = throw "citrix_receiver has been discontinued by Citrix (https://docs.citrix.com/en-us/citrix-workspace-app.html). Please use citrix_workspace."; citrix_receiver_13_10_0 = citrix_receiver; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f9df5646d8e..b507137649d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1643,8 +1643,6 @@ in { cmarkgfm = callPackage ../development/python-modules/cmarkgfm { }; - circus = callPackage ../development/python-modules/circus {}; - colorcet = callPackage ../development/python-modules/colorcet { }; coloredlogs = callPackage ../development/python-modules/coloredlogs { };