diff --git a/pkgs/development/python-modules/acquire/default.nix b/pkgs/development/python-modules/acquire/default.nix new file mode 100644 index 000000000000..0b69bc68b046 --- /dev/null +++ b/pkgs/development/python-modules/acquire/default.nix @@ -0,0 +1,70 @@ +{ 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.2"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "fox-it"; + repo = "acquire"; + rev = version; + hash = "sha256-YwmrdqWG5qD621+jQMVyTM0Uy0yXCVPv9zfVhZ+ohg0="; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 995d9cb280cf..30d4dbfa41eb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1106,6 +1106,8 @@ with pkgs; acpica-tools = callPackage ../tools/system/acpica-tools { }; + acquire = with python3Packages; toPythonApplication acquire; + act = callPackage ../development/tools/misc/act { }; actdiag = with python3.pkgs; toPythonApplication actdiag; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 77e7a2a11437..442f650e5fd7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -171,6 +171,8 @@ in { acoustics = callPackage ../development/python-modules/acoustics { }; + acquire = callPackage ../development/python-modules/acquire { }; + actdiag = callPackage ../development/python-modules/actdiag { }; adafruit-io = callPackage ../development/python-modules/adafruit-io { };