nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5 cacert,
6 addBinToPathHook,
7}:
8
9python3.pkgs.buildPythonApplication rec {
10 pname = "gallia";
11 version = "2.0.0a4";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "Fraunhofer-AISEC";
16 repo = "gallia";
17 tag = "v${version}";
18 hash = "sha256-by2zlfVN/FUNU9d5nn4JZ8xzto3k60DITPYhYqwm3Ms=";
19 };
20
21 build-system = with python3.pkgs; [ hatchling ];
22
23 dependencies = with python3.pkgs; [
24 aiosqlite
25 argcomplete
26 boltons
27 construct
28 more-itertools
29 platformdirs
30 pydantic
31 tabulate
32 zstandard
33 ];
34
35 SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
36
37 nativeCheckInputs =
38 with python3.pkgs;
39 [
40 pytestCheckHook
41 pytest-asyncio
42 ]
43 ++ [
44 addBinToPathHook
45 ];
46
47 pythonImportsCheck = [ "gallia" ];
48
49 meta = {
50 description = "Extendable Pentesting Framework for the Automotive Domain";
51 homepage = "https://github.com/Fraunhofer-AISEC/gallia";
52 changelog = "https://github.com/Fraunhofer-AISEC/gallia/releases/tag/v${version}";
53 license = with lib.licenses; [ asl20 ];
54 maintainers = with lib.maintainers; [
55 fab
56 rumpelsepp
57 ];
58 platforms = lib.platforms.linux;
59 };
60}