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-volume";
15 version = "3.11";
16 pyproject = true;
17
18 disabled = pythonOlder "3.11";
19
20 src = fetchFromGitHub {
21 owner = "fox-it";
22 repo = "dissect.volume";
23 rev = "refs/tags/${version}";
24 hash = "sha256-eHIInoquuyukKuPVvVB6qtovx1NloHHVGKfFBHxVd+o=";
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.volume" ];
40
41 disabledTests = [
42 # gzip.BadGzipFile: Not a gzipped file
43 "test_ddf_read"
44 "test_dm_thin"
45 "test_lvm_mirro"
46 "test_lvm_thin"
47 "test_md_raid0_zones"
48 "test_md_read"
49 ];
50
51 meta = with lib; {
52 description = "Dissect module implementing various utility functions for the other Dissect modules";
53 homepage = "https://github.com/fox-it/dissect.volume";
54 changelog = "https://github.com/fox-it/dissect.volume/releases/tag/${version}";
55 license = licenses.agpl3Only;
56 maintainers = with maintainers; [ fab ];
57 };
58}