poetryPlugins.poetry-plugin-shell: Fix tests on darwin (#377874)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
stdenv,
|
||||
pexpect,
|
||||
poetry,
|
||||
poetry-core,
|
||||
@@ -9,6 +10,7 @@
|
||||
pytest-xdist,
|
||||
pytestCheckHook,
|
||||
shellingham,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -34,11 +36,15 @@ buildPythonPackage rec {
|
||||
shellingham
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-mock
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
];
|
||||
nativeCheckInputs =
|
||||
[
|
||||
pytest-mock
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.ps
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/python-poetry/poetry-plugin-shell/blob/${src.tag}/CHANGELOG.md";
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
httpretty,
|
||||
pytest-mock,
|
||||
pytest-xdist,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -110,17 +109,13 @@ buildPythonPackage rec {
|
||||
--zsh <($out/bin/poetry completions zsh) \
|
||||
'';
|
||||
|
||||
nativeCheckInputs =
|
||||
[
|
||||
deepdiff
|
||||
pytestCheckHook
|
||||
httpretty
|
||||
pytest-mock
|
||||
pytest-xdist
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.ps
|
||||
];
|
||||
nativeCheckInputs = [
|
||||
deepdiff
|
||||
pytestCheckHook
|
||||
httpretty
|
||||
pytest-mock
|
||||
pytest-xdist
|
||||
];
|
||||
|
||||
preCheck = (
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user