nixpkgs/pkgs/tools/security/gallia/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.3 KiB
Nix
Raw Normal View History

2022-09-18 14:02:54 +00:00
{ lib
, fetchFromGitHub
, python3
2023-01-11 08:45:30 +00:00
, cacert
2022-09-18 14:02:54 +00:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "gallia";
2023-01-11 08:45:30 +00:00
version = "1.1.4";
2022-09-18 14:02:54 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "Fraunhofer-AISEC";
repo = pname;
rev = "refs/tags/v${version}";
2023-01-11 08:45:30 +00:00
hash = "sha256-McHzHK404kDB992T2f84dZHDxujpPIz4qglYMmv3kTw=";
2022-09-18 14:02:54 +00:00
};
2023-02-09 11:55:51 +00:00
pythonRelaxDeps = [
2023-03-30 09:17:24 +00:00
"aiofiles"
2023-05-16 10:08:37 +00:00
"argcomplete"
2023-02-09 11:55:51 +00:00
"msgspec"
];
2022-09-18 14:02:54 +00:00
nativeBuildInputs = with python3.pkgs; [
poetry-core
2023-02-09 11:55:51 +00:00
pythonRelaxDepsHook
2022-09-18 14:02:54 +00:00
];
propagatedBuildInputs = with python3.pkgs; [
aiofiles
aiohttp
aiosqlite
argcomplete
can
construct
msgspec
pydantic
2023-01-11 08:45:30 +00:00
pygit2
2022-09-18 14:02:54 +00:00
tabulate
2023-01-11 08:45:30 +00:00
tomli
2022-09-18 14:02:54 +00:00
zstandard
];
2023-01-11 08:45:30 +00:00
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
nativeCheckInputs = with python3.pkgs; [
2022-09-18 14:02:54 +00:00
pytestCheckHook
2023-01-11 08:45:30 +00:00
pytest-asyncio
2022-09-18 14:02:54 +00:00
];
pythonImportsCheck = [
"gallia"
];
preCheck = ''
export PATH=$out/bin:$PATH
'';
meta = with lib; {
2023-01-11 08:45:30 +00:00
description = "Extendable Pentesting Framework for the Automotive Domain";
2022-09-18 14:02:54 +00:00
homepage = "https://github.com/Fraunhofer-AISEC/gallia";
2023-02-09 11:53:46 +00:00
changelog = "https://github.com/Fraunhofer-AISEC/gallia/releases/tag/v${version}";
2022-09-18 14:02:54 +00:00
license = with licenses; [ asl20 ];
2023-01-28 23:38:55 +00:00
maintainers = with maintainers; [ fab rumpelsepp ];
2023-01-11 08:45:30 +00:00
platforms = platforms.linux;
2022-09-18 14:02:54 +00:00
};
}