summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/idstools/default.nix
blob: 54528caddb657b2168341390c7933f557ed093ab (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
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  python-dateutil,
  pythonOlder,
  setuptools,
  sphinx,
  sphinxcontrib-programoutput,
}:

buildPythonPackage rec {
  pname = "idstools";
  version = "0.6.5";
  pyproject = true;

  disabled = pythonOlder "3.11";

  src = fetchFromGitHub {
    owner = "jasonish";
    repo = "py-idstools";
    tag = version;
    hash = "sha256-sDar3piE9elMKQ6sg+gUw95Rr/RJOSCfV0VFiBURNg4=";
  };

  build-system = [ setuptools ];

  dependencies = [
    python-dateutil
    sphinx
    sphinxcontrib-programoutput
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "idstools" ];

  meta = {
    description = "Module to work with Snort and Suricata Rule and Event";
    homepage = "https://github.com/jasonish/py-idstools";
    changelog = "https://github.com/jasonish/py-idstools/releases/tag/${version}";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ fab ];
  };
}