depot/third_party/nixpkgs/pkgs/development/python-modules/acquire/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01: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;
};
checkInputs = [
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 ];
};
}