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