depot/third_party/nixpkgs/pkgs/development/python-modules/acquire/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

70 lines
1.3 KiB
Nix

{ 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.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fox-it";
repo = "acquire";
rev = version;
hash = "sha256-S7EZZxNcoLcZyyRNGlZj6nGoCAlqCxNdh3azIVKvOTM=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
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";
license = licenses.agpl3Only;
maintainers = with maintainers; [ fab ];
};
}