From 957a7cbcc839d2463c1cee2f66fb7cb35bda2f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 13 Mar 2023 11:31:05 +0100 Subject: [PATCH] python310Packages.can: add missing dependency, skip timing sensitive tests --- pkgs/development/python-modules/can/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/can/default.nix b/pkgs/development/python-modules/can/default.nix index d96f588a0aae..d8937082cb69 100644 --- a/pkgs/development/python-modules/can/default.nix +++ b/pkgs/development/python-modules/can/default.nix @@ -10,6 +10,8 @@ , pytest-timeout , pytestCheckHook , pythonOlder +, setuptools +, stdenv , typing-extensions , wrapt , uptime @@ -37,6 +39,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ msgpack packaging + setuptools typing-extensions wrapt ]; @@ -73,10 +76,16 @@ buildPythonPackage rec { # pytest.approx is not supported in a boolean context (since pytest7) "test_pack_unpack" "test_receive" + ] ++ lib.optionals stdenv.isDarwin [ + # timing sensitive + "test_general" + "test_gap" ]; preCheck = '' export PATH="$PATH:$out/bin"; + # skips timing senstive tests + export CI=1 ''; pythonImportsCheck = [