2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
2023-02-02 18:25:31 +00:00
|
|
|
, cacert
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "gallia";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.1.4";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Fraunhofer-AISEC";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-McHzHK404kDB992T2f84dZHDxujpPIz4qglYMmv3kTw=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"msgspec"
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
2023-02-16 17:41:37 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiofiles
|
|
|
|
aiohttp
|
|
|
|
aiosqlite
|
|
|
|
argcomplete
|
|
|
|
can
|
|
|
|
construct
|
|
|
|
msgspec
|
|
|
|
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
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"gallia"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [ fab rumpelsepp ];
|
|
|
|
platforms = platforms.linux;
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
}
|