Skip to content

Commit e07f6a7

Browse files
python3Packages.mirakuru: fix build on darwin in sandbox
1 parent 1b89b9a commit e07f6a7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pkgs/development/python-modules/mirakuru/default.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
stdenv,
23
lib,
34
buildPythonPackage,
45
fetchFromGitHub,
@@ -42,6 +43,20 @@ buildPythonPackage rec {
4243
];
4344
pythonImportsCheck = [ "mirakuru" ];
4445

46+
# Necessary for the tests to pass on Darwin with sandbox enabled.
47+
__darwinAllowLocalNetworking = true;
48+
49+
# Those are failing in the darwin sandbox with:
50+
# > ps: %mem: requires entitlement
51+
# > ps: vsz: requires entitlement
52+
# > ps: rss: requires entitlement
53+
# > ps: time: requires entitlement
54+
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
55+
"test_forgotten_stop"
56+
"test_mirakuru_cleanup"
57+
"test_daemons_killing"
58+
];
59+
4560
meta = with lib; {
4661
homepage = "https://pypi.org/project/mirakuru";
4762
description = "Process orchestration tool designed for functional and integration tests";

0 commit comments

Comments
 (0)