Unverified Commit e07f6a75 authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

python3Packages.mirakuru: fix build on darwin in sandbox

parent 1b89b9a9
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
{
  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";