nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 dissect-cstruct,
5 dissect-util,
6 fetchFromGitHub,
7 setuptools,
8 setuptools-scm,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "dissect-volume";
14 version = "3.17";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "fox-it";
19 repo = "dissect.volume";
20 tag = version;
21 hash = "sha256-z7DH96c0uxOOE71m+P+QGds7ZHm1/yyE2FTilZt1OdA=";
22 };
23
24 build-system = [
25 setuptools
26 setuptools-scm
27 ];
28
29 dependencies = [
30 dissect-cstruct
31 dissect-util
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "dissect.volume" ];
37
38 disabledTests = [
39 # gzip.BadGzipFile: Not a gzipped file
40 "test_apm"
41 "test_bsd"
42 "test_bsd64"
43 "test_ddf_read"
44 "test_dm_thin"
45 "test_gpt_4k"
46 "test_gpt_esxi_no_name_xff"
47 "test_gpt_esxi"
48 "test_gpt"
49 "test_hybrid_gpt"
50 "test_lvm_mirro"
51 "test_lvm_thin"
52 "test_lvm"
53 "test_lvm"
54 "test_mbr"
55 "test_md_raid0_zones"
56 "test_md_raid1_multiple_disks"
57 "test_md_read"
58 "test_vinum"
59 ];
60
61 meta = {
62 description = "Dissect module implementing various utility functions for the other Dissect modules";
63 homepage = "https://github.com/fox-it/dissect.volume";
64 changelog = "https://github.com/fox-it/dissect.volume/releases/tag/${src.tag}";
65 license = lib.licenses.agpl3Only;
66 maintainers = with lib.maintainers; [ fab ];
67 };
68}