2024-05-22 14:01:06 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
defusedxml,
|
|
|
|
dissect-cstruct,
|
|
|
|
dissect-target,
|
|
|
|
fetchFromGitHub,
|
|
|
|
minio,
|
|
|
|
pycryptodome,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
requests-toolbelt,
|
|
|
|
rich,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2022-10-07 21:01:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "acquire";
|
2024-09-10 16:18:38 +00:00
|
|
|
version = "3.16";
|
2023-11-11 12:24:27 +00:00
|
|
|
pyproject = true;
|
2022-10-07 21:01:57 +00:00
|
|
|
|
2023-09-27 08:51:44 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-10-07 21:01:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fox-it";
|
|
|
|
repo = "acquire";
|
2023-02-11 08:19:14 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-10 16:18:38 +00:00
|
|
|
hash = "sha256-wurnYHvzN5KfpikempYeztR9hkvGfRjR6M3tch6qFo4=";
|
2022-10-07 21:01:57 +00:00
|
|
|
};
|
|
|
|
|
2024-05-07 22:51:45 +00:00
|
|
|
build-system = [
|
2022-10-07 21:01:57 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-05-07 22:51:45 +00:00
|
|
|
dependencies = [
|
2022-10-07 21:01:57 +00:00
|
|
|
defusedxml
|
|
|
|
dissect-cstruct
|
|
|
|
dissect-target
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
full = [
|
|
|
|
dissect-target
|
|
|
|
minio
|
|
|
|
pycryptodome
|
|
|
|
requests
|
|
|
|
requests-toolbelt
|
|
|
|
rich
|
|
|
|
] ++ dissect-target.optional-dependencies.full;
|
|
|
|
};
|
|
|
|
|
2024-05-22 14:01:06 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full;
|
2022-10-07 21:01:57 +00:00
|
|
|
|
2024-05-22 14:01:06 +00:00
|
|
|
pythonImportsCheck = [ "acquire" ];
|
2022-10-07 21:01:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to quickly gather forensic artifacts from disk images or a live system";
|
|
|
|
homepage = "https://github.com/fox-it/acquire";
|
2023-02-11 08:19:14 +00:00
|
|
|
changelog = "https://github.com/fox-it/acquire/releases/tag/${version}";
|
2022-10-07 21:01:57 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|