2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
defusedxml,
|
|
|
|
dissect-cstruct,
|
|
|
|
dissect-target,
|
|
|
|
fetchFromGitHub,
|
|
|
|
minio,
|
|
|
|
pycryptodome,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
requests-toolbelt,
|
|
|
|
rich,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "acquire";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.15";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
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 = "acquire";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-+bA/6CW/1k9JfkXBk/JKXgOlrVHcMcKggzOAHyjdkX0=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2022-10-21 18:38:19 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-10-21 18:38:19 +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-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "acquire" ];
|
2022-10-21 18:38:19 +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-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/fox-it/acquire/releases/tag/${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|