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.19";
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-z/dYYC3s4R7j2c5HBFlAStcur2AS57AOYndsRlj/Htw=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 setuptools-scm
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "dissect.util" ];
33
34 meta = with lib; {
35 description = "Dissect module implementing various utility functions for the other Dissect modules";
36 mainProgram = "dump-nskeyedarchiver";
37 homepage = "https://github.com/fox-it/dissect.util";
38 changelog = "https://github.com/fox-it/dissect.util/releases/tag/${version}";
39 license = licenses.agpl3Only;
40 maintainers = with maintainers; [ fab ];
41 };
42}