1{
2 lib,
3 buildPythonPackage,
4 dissect-cstruct,
5 fetchFromGitHub,
6 setuptools,
7 setuptools-scm,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "dissect-clfs";
14 version = "1.10";
15 pyproject = true;
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "fox-it";
21 repo = "dissect.clfs";
22 tag = version;
23 hash = "sha256-rw2LuCgn/oUnvf2HNXv00pDaiLrqjC5L57a1k62U6zU=";
24 };
25
26 build-system = [
27 setuptools
28 setuptools-scm
29 ];
30
31 dependencies = [ dissect-cstruct ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "dissect.clfs" ];
36
37 meta = with lib; {
38 description = "Dissect module implementing a parser for the CLFS (Common Log File System) file system";
39 homepage = "https://github.com/fox-it/dissect.clfs";
40 changelog = "https://github.com/fox-it/dissect.clfs/releases/tag/${src.tag}";
41 license = licenses.agpl3Only;
42 maintainers = with maintainers; [ fab ];
43 };
44}