python3Packages.mirakuru: fix build on darwin in sandbox

This commit is contained in:
Wolfgang Walther
2024-11-09 14:46:35 +01:00
parent 1b89b9a99d
commit e07f6a7565
@@ -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";