15 buildPythonPackage rec {
18 format = "setuptools";
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
25 rev = "refs/tags/v${version}";
26 hash = "sha256-kzJDzUK6zknUyXPdKc4zMvWim4C5NQCSJSS45HI6hKM=";
29 # `stripLen` does not seem to work here
30 patchFlags = [ "-p2" ];
32 sourceRoot = "${src.name}/src";
34 # propagate wireshark, so pyshark can find it when used
35 propagatedBuildInputs = [
51 export HOME=$(mktemp -d)
56 # KeyError: 'Packet of index 0 does not exist in capture'
57 "test_getting_packet_summary"
58 ] ++ lib.optionals stdenv.isDarwin [
60 # _pickle.PicklingError: logger cannot be pickled
61 "test_iterate_empty_psml_capture"
64 pythonImportsCheck = [
73 description = "Python wrapper for tshark, allowing Python packet parsing using Wireshark dissectors";
74 homepage = "https://github.com/KimiNewt/pyshark/";
75 changelog = "https://github.com/KimiNewt/pyshark/releases/tag/${version}";
76 license = licenses.mit;
77 maintainers = with maintainers; [ ];