Merge pull request #232478 from figsoda/pyshark

python310Packages.pyshark: fix build on darwin
This commit is contained in:
Ryan Lahfa 2023-05-17 21:31:46 +02:00 committed by GitHub
commit 936c7b6a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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