nixpkgs/pkgs/development/python-modules/acquire/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.3 KiB
Nix
Raw Normal View History

2022-10-07 21:01:57 +00:00
{
lib,
buildPythonPackage,
defusedxml,
dissect-cstruct,
dissect-target,
fetchFromGitHub,
minio,
pycryptodome,
pytestCheckHook,
pythonOlder,
requests,
requests-toolbelt,
rich,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "acquire";
version = "3.16";
pyproject = true;
2022-10-07 21:01:57 +00:00
disabled = pythonOlder "3.9";
2022-10-07 21:01:57 +00:00
src = fetchFromGitHub {
owner = "fox-it";
repo = "acquire";
rev = "refs/tags/${version}";
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;
};
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full;
pythonImportsCheck = [ "acquire" ];
meta = with lib; {
description = "Tool to quickly gather forensic artifacts from disk images or a live system";
homepage = "https://github.com/fox-it/acquire";
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 ];
};
}