2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, dissect-cim
|
|
|
|
, dissect-clfs
|
2023-07-15 17:15:38 +00:00
|
|
|
, dissect-cobaltstrike
|
2022-10-21 18:38:19 +00:00
|
|
|
, dissect-cstruct
|
|
|
|
, dissect-esedb
|
|
|
|
, dissect-etl
|
|
|
|
, dissect-eventlog
|
|
|
|
, dissect-evidence
|
|
|
|
, dissect-extfs
|
|
|
|
, dissect-fat
|
|
|
|
, dissect-ffs
|
2023-02-16 17:41:37 +00:00
|
|
|
, dissect-executable
|
2022-10-21 18:38:19 +00:00
|
|
|
, dissect-hypervisor
|
|
|
|
, dissect-ntfs
|
|
|
|
, dissect-ole
|
|
|
|
, dissect-regf
|
|
|
|
, dissect-shellitem
|
|
|
|
, dissect-sql
|
2023-02-16 17:41:37 +00:00
|
|
|
, dissect-squashfs
|
2022-10-21 18:38:19 +00:00
|
|
|
, dissect-target
|
|
|
|
, dissect-util
|
|
|
|
, dissect-vmfs
|
|
|
|
, dissect-volume
|
|
|
|
, dissect-xfs
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dissect";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.10";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fox-it";
|
|
|
|
repo = "dissect";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-AgmBU2sC3/okC7LKQC6yMEJ3u69WwAMAANILMASBIjw=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dissect-cim
|
|
|
|
dissect-clfs
|
2023-07-15 17:15:38 +00:00
|
|
|
dissect-cobaltstrike
|
2022-10-21 18:38:19 +00:00
|
|
|
dissect-cstruct
|
|
|
|
dissect-esedb
|
|
|
|
dissect-etl
|
|
|
|
dissect-eventlog
|
|
|
|
dissect-evidence
|
2023-02-16 17:41:37 +00:00
|
|
|
dissect-executable
|
2022-10-21 18:38:19 +00:00
|
|
|
dissect-extfs
|
|
|
|
dissect-fat
|
|
|
|
dissect-ffs
|
|
|
|
dissect-hypervisor
|
|
|
|
dissect-ntfs
|
|
|
|
dissect-ole
|
|
|
|
dissect-regf
|
|
|
|
dissect-shellitem
|
|
|
|
dissect-sql
|
2023-02-16 17:41:37 +00:00
|
|
|
dissect-squashfs
|
2022-10-21 18:38:19 +00:00
|
|
|
dissect-target
|
|
|
|
dissect-util
|
|
|
|
dissect-vmfs
|
|
|
|
dissect-volume
|
|
|
|
dissect-xfs
|
|
|
|
] ++ dissect-target.optional-dependencies.full;
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dissect"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Dissect meta module";
|
|
|
|
homepage = "https://github.com/fox-it/dissect";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/fox-it/dissect/releases/tag/${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|