gallia: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-12 09:14:17 +02:00
parent 26fc75a28e
commit bce1960d37

View File

@ -1,7 +1,8 @@
{ lib {
, fetchFromGitHub lib,
, python3 fetchFromGitHub,
, cacert python3,
cacert,
}: }:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
@ -16,17 +17,11 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-hLGaImYkv6/1Wv1a+0tKmW4qmV4akNoyd0RXopJjetI="; hash = "sha256-hLGaImYkv6/1Wv1a+0tKmW4qmV4akNoyd0RXopJjetI=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [ "httpx" ];
"httpx"
];
build-system = with python3.pkgs; [ build-system = with python3.pkgs; [ poetry-core ];
poetry-core
];
nativeBuildInputs = with python3.pkgs; [ nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ];
pythonRelaxDepsHook
];
dependencies = with python3.pkgs; [ dependencies = with python3.pkgs; [
aiofiles aiofiles
@ -54,9 +49,7 @@ python3.pkgs.buildPythonApplication rec {
pytest-asyncio pytest-asyncio
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "gallia" ];
"gallia"
];
preCheck = '' preCheck = ''
export PATH=$out/bin:$PATH export PATH=$out/bin:$PATH
@ -67,7 +60,10 @@ python3.pkgs.buildPythonApplication rec {
homepage = "https://github.com/Fraunhofer-AISEC/gallia"; homepage = "https://github.com/Fraunhofer-AISEC/gallia";
changelog = "https://github.com/Fraunhofer-AISEC/gallia/releases/tag/v${version}"; changelog = "https://github.com/Fraunhofer-AISEC/gallia/releases/tag/v${version}";
license = with licenses; [ asl20 ]; license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab rumpelsepp ]; maintainers = with maintainers; [
fab
rumpelsepp
];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }