1{
2 lib,
3 buildPythonPackage,
4 dissect-cstruct,
5 dissect-util,
6 fetchFromGitHub,
7 setuptools,
8 setuptools-scm,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "dissect-vmfs";
15 version = "3.11";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.10";
19
20 src = fetchFromGitHub {
21 owner = "fox-it";
22 repo = "dissect.vmfs";
23 tag = version;
24 hash = "sha256-jGPHZ26DDIcblgx4hP6L2BLHYY8YeIBcbxNR7bN/49g=";
25 };
26
27 nativeBuildInputs = [
28 setuptools
29 setuptools-scm
30 ];
31
32 propagatedBuildInputs = [
33 dissect-cstruct
34 dissect-util
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "dissect.vmfs" ];
40
41 meta = with lib; {
42 description = "Dissect module implementing a parser for the VMFS file system";
43 homepage = "https://github.com/fox-it/dissect.vmfs";
44 changelog = "https://github.com/fox-it/dissect.vmfs/releases/tag/${src.tag}";
45 license = licenses.agpl3Only;
46 maintainers = with maintainers; [ fab ];
47 };
48}