1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 setuptools-scm,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "dissect-util";
13 version = "3.21";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "fox-it";
20 repo = "dissect.util";
21 tag = version;
22 hash = "sha256-DCe1V3ZQxr2uQ5L4Lucqu0E1jVo7P6cEwC+4tuBmmqI=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 setuptools-scm
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "dissect.util" ];
33
34 disabledTests = [
35 # File handling issue
36 "test_cpio_formats"
37 ];
38
39 meta = with lib; {
40 description = "Dissect module implementing various utility functions for the other Dissect modules";
41 mainProgram = "dump-nskeyedarchiver";
42 homepage = "https://github.com/fox-it/dissect.util";
43 changelog = "https://github.com/fox-it/dissect.util/releases/tag/${version}";
44 license = licenses.agpl3Only;
45 maintainers = with maintainers; [ fab ];
46 };
47}