Unverified Commit b227a676 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

poetryPlugins.poetry-plugin-shell: Fix tests on darwin (#377874)

parents 568c12fc 48493f8a
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  stdenv,
  pexpect,
  poetry,
  poetry-core,
@@ -9,6 +10,7 @@
  pytest-xdist,
  pytestCheckHook,
  shellingham,
  darwin,
}:

buildPythonPackage rec {
@@ -34,10 +36,14 @@ buildPythonPackage rec {
    shellingham
  ];

  nativeCheckInputs = [
  nativeCheckInputs =
    [
      pytest-mock
      pytest-xdist
      pytestCheckHook
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      darwin.ps
    ];

  meta = {
+7 −12
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@
  httpretty,
  pytest-mock,
  pytest-xdist,
  darwin,
}:

buildPythonPackage rec {
@@ -110,16 +109,12 @@ buildPythonPackage rec {
      --zsh <($out/bin/poetry completions zsh) \
  '';

  nativeCheckInputs =
    [
  nativeCheckInputs = [
    deepdiff
    pytestCheckHook
    httpretty
    pytest-mock
    pytest-xdist
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      darwin.ps
  ];

  preCheck = (