From a7dc576a248d2e59780e9d299ece2d01403bd359 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 17 May 2023 14:43:14 -0400 Subject: [PATCH] python310Packages.pyshark: fix build on darwin --- pkgs/development/python-modules/pyshark/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyshark/default.nix b/pkgs/development/python-modules/pyshark/default.nix index 272672c2db34..52a0b55aaf8d 100644 --- a/pkgs/development/python-modules/pyshark/default.nix +++ b/pkgs/development/python-modules/pyshark/default.nix @@ -1,14 +1,15 @@ { lib , buildPythonPackage -, fetchpatch +, pythonOlder , fetchFromGitHub +, fetchpatch , appdirs , lxml , packaging , py , pytestCheckHook -, pythonOlder , wireshark-cli +, stdenv }: buildPythonPackage rec { @@ -48,6 +49,12 @@ buildPythonPackage rec { nativeCheckInputs = [ py pytestCheckHook wireshark-cli ]; + disabledTests = lib.optionals stdenv.isDarwin [ + # fails on darwin + # _pickle.PicklingError: logger cannot be pickled + "test_iterate_empty_psml_capture" + ]; + pythonImportsCheck = [ "pyshark" ]; pytestFlagsArray = [ "../tests/" ];