diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-09-18 16:02:54 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-09-25 11:43:52 +0200 |
commit | a9da0a7de2023363f4d67c96278374832ff90033 (patch) | |
tree | fec4c6eb2365735a89a640f92b8ac3b32889567f /pkgs/tools/security/gallia | |
parent | 12f1449d2b046c908afcbdfde52c4380f0b58959 (diff) |
gallia: init at 1.0.3
Diffstat (limited to 'pkgs/tools/security/gallia')
-rw-r--r-- | pkgs/tools/security/gallia/default.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/tools/security/gallia/default.nix b/pkgs/tools/security/gallia/default.nix new file mode 100644 index 0000000000000..c52532117cc3d --- /dev/null +++ b/pkgs/tools/security/gallia/default.nix @@ -0,0 +1,60 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "gallia"; + version = "1.0.3"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "Fraunhofer-AISEC"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-CoZ3niGuEjcaSyIGc0MIy95v64nTbhgqW/0uz4a/f1o="; + }; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + aiofiles + aiohttp + aiosqlite + argcomplete + can + construct + msgspec + pydantic + tabulate + tomlkit + xdg + zstandard + ]; + + checkInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'zstandard = "^0.17.0"' 'zstandard = "*"' + ''; + + pythonImportsCheck = [ + "gallia" + ]; + + preCheck = '' + export PATH=$out/bin:$PATH + ''; + + meta = with lib; { + description = "Pentesting framework with the focus on the automotive domain"; + homepage = "https://github.com/Fraunhofer-AISEC/gallia"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} |