python310Packages.pyshark: fix build on darwin

This commit is contained in:
figsoda 2023-05-17 14:43:14 -04:00
parent 4376e41af0
commit a7dc576a24

View File

@ -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/" ];