nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 dissect-cstruct,
5 dissect-util,
6 fetchFromGitHub,
7 pytestCheckHook,
8 setuptools-scm,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "dissect-vmfs";
14 version = "3.13";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "fox-it";
19 repo = "dissect.vmfs";
20 tag = version;
21 hash = "sha256-4c3JVbQidGvXurWaO+/E0OehGgiY5shE5BiIBwMrCWM=";
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.vmfs" ];
37
38 disabledTests = [
39 # Archive not present
40 "test_huge"
41 "test_lvm_basic"
42 "test_lvm_span"
43 "test_sparse"
44 "test_vmfs_basic"
45 "test_vmfs_content"
46 "test_vmfs_jbosf"
47 ];
48
49 meta = {
50 description = "Dissect module implementing a parser for the VMFS file system";
51 homepage = "https://github.com/fox-it/dissect.vmfs";
52 changelog = "https://github.com/fox-it/dissect.vmfs/releases/tag/${src.tag}";
53 license = lib.licenses.agpl3Only;
54 maintainers = with lib.maintainers; [ fab ];
55 };
56}