1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

poetry: fix tests on Darwin

tests/console/commands/test_shell.py::test_shell used to fail with

    shellingham.posix.ps.PsNotAvailable: ps not found
This commit is contained in:
Robert Schütz 2024-01-16 13:06:03 -08:00
parent ac1638d014
commit 3b5fd3ff81

View file

@ -37,6 +37,7 @@
, pytest-mock
, pytest-xdist
, pythonAtLeast
, darwin
}:
buildPythonPackage rec {
@ -110,6 +111,8 @@ buildPythonPackage rec {
httpretty
pytest-mock
pytest-xdist
] ++ lib.optionals stdenv.isDarwin [
darwin.ps
];
preCheck = (''