1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 python-dateutil,
7 pythonOlder,
8 setuptools,
9 sphinx,
10 sphinxcontrib-programoutput,
11}:
12
13buildPythonPackage rec {
14 pname = "idstools";
15 version = "0.6.5";
16 pyproject = true;
17
18 disabled = pythonOlder "3.11";
19
20 src = fetchFromGitHub {
21 owner = "jasonish";
22 repo = "py-idstools";
23 tag = version;
24 hash = "sha256-sDar3piE9elMKQ6sg+gUw95Rr/RJOSCfV0VFiBURNg4=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 python-dateutil
31 sphinx
32 sphinxcontrib-programoutput
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "idstools" ];
38
39 meta = {
40 description = "Module to work with Snort and Suricata Rule and Event";
41 homepage = "https://github.com/jasonish/py-idstools";
42 changelog = "https://github.com/jasonish/py-idstools/releases/tag/${version}";
43 license = lib.licenses.bsd2;
44 maintainers = with lib.maintainers; [ fab ];
45 };
46}