summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-pcapng/default.nix
blob: ffcf10c16f057bddd965b4a110e4ec50f88eaadb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytestCheckHook,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "python-pcapng";
  version = "2.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rshk";
    repo = "python-pcapng";
    tag = version;
    hash = "sha256-uyoutb4Hk2Wd3z7UopNxauMLGdYVOAhDNzRKclSr7No=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  pythonImportsCheck = [ "pcapng" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/rshk/python-pcapng/blob/${src.tag}/CHANGELOG.rst";
    description = "Library to read/write the pcap-ng format used by various packet sniffers";
    homepage = "https://github.com/rshk/python-pcapng";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.dotlambda ];
  };
}