gallia: use addBinToPathHook

This commit is contained in:
Pol Dellaiera
2025-02-04 09:01:38 +01:00
parent fbac494ac2
commit 90c2ed254e
+10 -8
View File
@@ -3,6 +3,7 @@
fetchFromGitHub,
python3,
cacert,
addBinToPathHook,
}:
python3.pkgs.buildPythonApplication rec {
@@ -43,17 +44,18 @@ python3.pkgs.buildPythonApplication rec {
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
pytest-asyncio
];
nativeCheckInputs =
with python3.pkgs;
[
pytestCheckHook
pytest-asyncio
]
++ [
addBinToPathHook
];
pythonImportsCheck = [ "gallia" ];
preCheck = ''
export PATH=$out/bin:$PATH
'';
meta = with lib; {
description = "Extendable Pentesting Framework for the Automotive Domain";
homepage = "https://github.com/Fraunhofer-AISEC/gallia";