From 2012f6d0e55c59d1faa6cb8331d38c858343fe79 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Mon, 28 Apr 2025 16:12:51 -0700 Subject: [PATCH] python3Packages.circus: build from source --- .../python-modules/circus/default.nix | 50 ++++--------------- 1 file changed, 9 insertions(+), 41 deletions(-) diff --git a/pkgs/development/python-modules/circus/default.nix b/pkgs/development/python-modules/circus/default.nix index 0ebb7946ef9d..8335e6db9d61 100644 --- a/pkgs/development/python-modules/circus/default.nix +++ b/pkgs/development/python-modules/circus/default.nix @@ -2,11 +2,10 @@ lib, stdenv, buildPythonPackage, - fetchPypi, + fetchFromGitHub, flit-core, psutil, pytestCheckHook, - pythonOlder, pyyaml, pyzmq, tornado, @@ -17,11 +16,11 @@ buildPythonPackage rec { version = "0.19.0"; pyproject = true; - disabled = pythonOlder "3.7"; - - src = fetchPypi { - inherit pname version; - hash = "sha256-++alApmYrBI5sX6904JRrIsiYn0w5OxvaMsQIzkRsPQ="; + src = fetchFromGitHub { + owner = "circus-tent"; + repo = "circus"; + tag = version; + hash = "sha256-MiZXiGb6F8LAJLAdmEDBO8Y5cJxHJy7jMFi50Ac3Bsc="; }; build-system = [ flit-core ]; @@ -43,42 +42,11 @@ buildPythonPackage rec { ''; disabledTests = [ - # these tests raise circus.tests.support.TimeoutException - "test_add_start" - "test_add" - "test_command_already_running" - "test_dummy" - "test_exits_within_graceful_timeout" - "test_full_stats" - "test_handler" - "test_handler" - "test_inherited" - "test_kills_after_graceful_timeout" - "test_launch_cli" - "test_max_age" - "test_reload_sequential" - "test_reload_uppercase" - "test_reload_wid_1_worker" - "test_reload_wid_4_workers" - "test_reload1" - "test_reload2" - "test_resource_watcher_max_cpu" - "test_resource_watcher_max_mem_abs" + # Depends on the build machine configuration "test_resource_watcher_max_mem" - "test_resource_watcher_min_cpu" "test_resource_watcher_min_mem_abs" - "test_resource_watcher_min_mem" - "test_set_before_launch" - "test_set_by_arbiter" - "test_signal" - "test_stdin_socket" - "test_stop_and_restart" - "test_stream" - "test_venv" - "test_watchdog_discovery_found" - "test_watchdog_discovery_not_found" - # this test requires socket communication - "test_plugins" + # Compares with magic string + "test_streams" ]; pythonImportsCheck = [ "circus" ];