1{
2 lib,
3 argon2-cffi,
4 buildPythonPackage,
5 dissect-cstruct,
6 dissect-util,
7 dissect-target,
8 fetchFromGitHub,
9 pycryptodome,
10 pythonOlder,
11 rich,
12 setuptools-scm,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "dissect-fve";
18 version = "4.1";
19 pyproject = true;
20
21 disabled = pythonOlder "3.9";
22
23 src = fetchFromGitHub {
24 owner = "fox-it";
25 repo = "dissect.fve";
26 tag = version;
27 hash = "sha256-xPjwyI134E0JWkM+S2ae9TuBGHMSrgyjooM9CGECqgg=";
28 };
29
30 build-system = [
31 setuptools
32 setuptools-scm
33 ];
34
35 dependencies = [
36 argon2-cffi
37 dissect-cstruct
38 dissect-util
39 pycryptodome
40 ];
41
42 optional-dependencies = {
43 full = [
44 dissect-target
45 rich
46 ];
47 };
48
49 pythonImportsCheck = [ "dissect.fve" ];
50
51 meta = with lib; {
52 description = "Dissect module implementing parsers for full volume encryption implementations";
53 homepage = "https://github.com/fox-it/dissect.fve";
54 changelog = "https://github.com/fox-it/dissect.fve/releases/tag/${src.tag}";
55 license = licenses.agpl3Only;
56 maintainers = with maintainers; [ fab ];
57 };
58}