diff --git a/pkgs/development/python-modules/dissect-target/default.nix b/pkgs/development/python-modules/dissect-target/default.nix index 08013f58cee3..f5a70b531835 100644 --- a/pkgs/development/python-modules/dissect-target/default.nix +++ b/pkgs/development/python-modules/dissect-target/default.nix @@ -3,6 +3,7 @@ , asn1crypto , buildPythonPackage , defusedxml +, dissect-btrfs , dissect-cim , dissect-clfs , dissect-cstruct @@ -16,8 +17,8 @@ , dissect-hypervisor , dissect-ntfs , dissect-regf -, dissect-sql , dissect-shellitem +, dissect-sql , dissect-thumbcache , dissect-util , dissect-volume @@ -25,14 +26,17 @@ , fetchFromGitHub , flow-record , fusepy +, impacket , ipython +, paho-mqtt , pycryptodome , pytestCheckHook , pythonOlder -, pyyaml +, ruamel-yaml , setuptools , setuptools-scm , structlog +, tomli , yara-python , zstandard }: @@ -78,6 +82,7 @@ buildPythonPackage rec { passthru.optional-dependencies = { full = [ asn1crypto + dissect-btrfs dissect-cim dissect-clfs dissect-esedb @@ -92,10 +97,19 @@ buildPythonPackage rec { fusepy ipython pycryptodome - pyyaml + ruamel-yaml yara-python zstandard - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; + yara = [ + yara-python + ] ++ passthru.optional-dependencies.full; + smb = [ + impacket + ] ++ passthru.optional-dependencies.full; + mqtt = [ + paho-mqtt + ] ++ passthru.optional-dependencies.full; }; nativeCheckInputs = [ @@ -121,18 +135,34 @@ buildPythonPackage rec { # Tests compare dates and times "yum" # Filesystem access, windows defender tests + "test_config_tree_plugin" "test_defender_quarantine_recovery" + "test_execute_pipeline" + "test_keychain_register_keychain_file" + "test_plugins_child_docker" + "test_plugins_child_wsl" + "test_reg_output" + "test_regflex" + "test_systemd_basic_syntax" + "test_target_cli_unicode_argparse" + "test_target_query" ] ++ # test is broken on Darwin lib.optional stdenv.hostPlatform.isDarwin "test_fs_attrs_no_os_listxattr"; disabledTestPaths = [ - # Tests are using Windows paths - "tests/plugins/apps/browser/" + # Tests are using Windows paths, missing test files + "tests/plugins/apps/" # ValueError: Invalid Locate file magic. Expected /x00LOCATE02/x00 "tests/plugins/os/unix/locate/" # Missing plugin support - "tests/tools/test_reg.py" + "tests/tools/test_dump.py" + "tests/plugins/os/" + "tests/plugins/filesystem/" + "tests/test_registration.py" + "tests/filesystems/" + "tests/test_filesystem.py" + "tests/loaders/" ]; meta = with lib; {