From e07f6a75653d2b8a6f7ab72f98b5befbda22876d Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 9 Nov 2024 13:57:29 +0100 Subject: [PATCH] python3Packages.mirakuru: fix build on darwin in sandbox --- .../python-modules/mirakuru/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/python-modules/mirakuru/default.nix b/pkgs/development/python-modules/mirakuru/default.nix index 3a7e969c9a1b..58c74cd3cad1 100644 --- a/pkgs/development/python-modules/mirakuru/default.nix +++ b/pkgs/development/python-modules/mirakuru/default.nix @@ -1,4 +1,5 @@ { + stdenv, lib, buildPythonPackage, fetchFromGitHub, @@ -42,6 +43,20 @@ buildPythonPackage rec { ]; pythonImportsCheck = [ "mirakuru" ]; + # Necessary for the tests to pass on Darwin with sandbox enabled. + __darwinAllowLocalNetworking = true; + + # Those are failing in the darwin sandbox with: + # > ps: %mem: requires entitlement + # > ps: vsz: requires entitlement + # > ps: rss: requires entitlement + # > ps: time: requires entitlement + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ + "test_forgotten_stop" + "test_mirakuru_cleanup" + "test_daemons_killing" + ]; + meta = with lib; { homepage = "https://pypi.org/project/mirakuru"; description = "Process orchestration tool designed for functional and integration tests";