nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 defusedxml,
5 dissect-cstruct,
6 dissect-util,
7 fetchFromGitHub,
8 pycryptodome,
9 pytestCheckHook,
10 setuptools,
11 setuptools-scm,
12}:
13
14buildPythonPackage rec {
15 pname = "dissect-hypervisor";
16 version = "3.20";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "fox-it";
21 repo = "dissect.hypervisor";
22 tag = version;
23 hash = "sha256-/b/7u3b0G3XRqXxjyhHn5dYzueQOPoacYGeDYv21I0w=";
24 };
25
26 build-system = [
27 setuptools
28 setuptools-scm
29 ];
30
31 dependencies = [
32 defusedxml
33 dissect-cstruct
34 dissect-util
35 ];
36
37 optional-dependencies = {
38 full = [
39 pycryptodome
40 ];
41 };
42
43 nativeCheckInputs = [ pytestCheckHook ];
44
45 pythonImportsCheck = [ "dissect.hypervisor" ];
46
47 meta = {
48 description = "Dissect module implementing parsers for various hypervisor disk, backup and configuration files";
49 homepage = "https://github.com/fox-it/dissect.hypervisor";
50 changelog = "https://github.com/fox-it/dissect.hypervisor/releases/tag/${src.tag}";
51 license = lib.licenses.agpl3Only;
52 maintainers = with lib.maintainers; [ fab ];
53 };
54}