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";