587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
cacert,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "gallia";
|
|
version = "1.7.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Fraunhofer-AISEC";
|
|
repo = "gallia";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-hLGaImYkv6/1Wv1a+0tKmW4qmV4akNoyd0RXopJjetI=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "httpx" ];
|
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
|
|
|
nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
aiofiles
|
|
aiohttp
|
|
aiosqlite
|
|
argcomplete
|
|
can
|
|
exitcode
|
|
httpx
|
|
platformdirs
|
|
psutil
|
|
construct
|
|
msgspec
|
|
pydantic
|
|
pygit2
|
|
tabulate
|
|
tomli
|
|
zstandard
|
|
];
|
|
|
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/Fraunhofer-AISEC/gallia/releases/tag/v${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [
|
|
fab
|
|
rumpelsepp
|
|
];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|