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

authored by Robert Schütz and committed by GitHub b227a676 568c12fc

+18 -17
+11 -5
pkgs/by-name/po/poetry/plugins/poetry-plugin-shell.nix
··· 2 2 buildPythonPackage, 3 3 fetchFromGitHub, 4 4 lib, 5 + stdenv, 5 6 pexpect, 6 7 poetry, 7 8 poetry-core, ··· 9 10 pytest-xdist, 10 11 pytestCheckHook, 11 12 shellingham, 13 + darwin, 12 14 }: 13 15 14 16 buildPythonPackage rec { ··· 34 36 shellingham 35 37 ]; 36 38 37 - nativeCheckInputs = [ 38 - pytest-mock 39 - pytest-xdist 40 - pytestCheckHook 41 - ]; 39 + nativeCheckInputs = 40 + [ 41 + pytest-mock 42 + pytest-xdist 43 + pytestCheckHook 44 + ] 45 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 46 + darwin.ps 47 + ]; 42 48 43 49 meta = { 44 50 changelog = "https://github.com/python-poetry/poetry-plugin-shell/blob/${src.tag}/CHANGELOG.md";
+7 -12
pkgs/by-name/po/poetry/unwrapped.nix
··· 32 32 httpretty, 33 33 pytest-mock, 34 34 pytest-xdist, 35 - darwin, 36 35 }: 37 36 38 37 buildPythonPackage rec { ··· 110 109 --zsh <($out/bin/poetry completions zsh) \ 111 110 ''; 112 111 113 - nativeCheckInputs = 114 - [ 115 - deepdiff 116 - pytestCheckHook 117 - httpretty 118 - pytest-mock 119 - pytest-xdist 120 - ] 121 - ++ lib.optionals stdenv.hostPlatform.isDarwin [ 122 - darwin.ps 123 - ]; 112 + nativeCheckInputs = [ 113 + deepdiff 114 + pytestCheckHook 115 + httpretty 116 + pytest-mock 117 + pytest-xdist 118 + ]; 124 119 125 120 preCheck = ( 126 121 ''