2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
|
|
|
cacert,
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "gallia";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.9.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Fraunhofer-AISEC";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "gallia";
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-izMTTZrp4aizq5jS51BNtq3lv9Kr+xI7scZfYKXA/oY=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonRelaxDeps = [ "aiofiles" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = with python3.pkgs; [
|
2022-09-30 11:47:45 +00:00
|
|
|
aiofiles
|
|
|
|
aiohttp
|
|
|
|
aiosqlite
|
|
|
|
argcomplete
|
2024-09-19 14:19:46 +00:00
|
|
|
python-can
|
2024-01-25 14:12:00 +00:00
|
|
|
exitcode
|
2024-09-19 14:19:46 +00:00
|
|
|
construct
|
2024-04-21 15:54:59 +00:00
|
|
|
httpx
|
2024-09-19 14:19:46 +00:00
|
|
|
more-itertools
|
|
|
|
msgspec
|
2024-01-25 14:12:00 +00:00
|
|
|
platformdirs
|
|
|
|
psutil
|
2022-09-30 11:47:45 +00:00
|
|
|
pydantic
|
2023-02-02 18:25:31 +00:00
|
|
|
pygit2
|
2022-09-30 11:47:45 +00:00
|
|
|
tabulate
|
2023-02-02 18:25:31 +00:00
|
|
|
tomli
|
2022-09-30 11:47:45 +00:00
|
|
|
zstandard
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-09-30 11:47:45 +00:00
|
|
|
pytestCheckHook
|
2023-02-02 18:25:31 +00:00
|
|
|
pytest-asyncio
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "gallia" ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
description = "Extendable Pentesting Framework for the Automotive Domain";
|
2022-09-30 11:47:45 +00:00
|
|
|
homepage = "https://github.com/Fraunhofer-AISEC/gallia";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/Fraunhofer-AISEC/gallia/releases/tag/v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
fab
|
|
|
|
rumpelsepp
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
platforms = platforms.linux;
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
}
|