From ff11f59f9fd933edf33cbc497421b9258647bc6c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 11 Apr 2024 17:12:10 +0000 Subject: [PATCH 1/3] gallia: 1.6.0 -> 1.7.0 --- pkgs/tools/security/gallia/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/gallia/default.nix b/pkgs/tools/security/gallia/default.nix index 8279227f3d28..7b85f7959378 100644 --- a/pkgs/tools/security/gallia/default.nix +++ b/pkgs/tools/security/gallia/default.nix @@ -6,14 +6,14 @@ python3.pkgs.buildPythonApplication rec { pname = "gallia"; - version = "1.6.0"; + version = "1.7.0"; pyproject = true; src = fetchFromGitHub { owner = "Fraunhofer-AISEC"; repo = "gallia"; rev = "refs/tags/v${version}"; - hash = "sha256-LvzEyBkhji7ruVVO2EpqM8pKOcTX8Dnkqu/GtWOfMZs="; + hash = "sha256-hLGaImYkv6/1Wv1a+0tKmW4qmV4akNoyd0RXopJjetI="; }; nativeBuildInputs = with python3.pkgs; [ From 26fc75a28ec39848eed78532e0799e3ed03bd4e3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Apr 2024 09:13:53 +0200 Subject: [PATCH 2/3] gallia: refactor --- pkgs/tools/security/gallia/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/security/gallia/default.nix b/pkgs/tools/security/gallia/default.nix index 7b85f7959378..1f481d280d82 100644 --- a/pkgs/tools/security/gallia/default.nix +++ b/pkgs/tools/security/gallia/default.nix @@ -16,16 +16,19 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-hLGaImYkv6/1Wv1a+0tKmW4qmV4akNoyd0RXopJjetI="; }; - nativeBuildInputs = with python3.pkgs; [ - poetry-core - pythonRelaxDepsHook - ]; - pythonRelaxDeps = [ "httpx" ]; - propagatedBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ + poetry-core + ]; + + nativeBuildInputs = with python3.pkgs; [ + pythonRelaxDepsHook + ]; + + dependencies = with python3.pkgs; [ aiofiles aiohttp aiosqlite From bce1960d378b1b6e125b07b6698bc2ecbed3d3e3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Apr 2024 09:14:17 +0200 Subject: [PATCH 3/3] gallia: format with nixfmt --- pkgs/tools/security/gallia/default.nix | 30 +++++++++++--------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/pkgs/tools/security/gallia/default.nix b/pkgs/tools/security/gallia/default.nix index 1f481d280d82..be66306c331b 100644 --- a/pkgs/tools/security/gallia/default.nix +++ b/pkgs/tools/security/gallia/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchFromGitHub -, python3 -, cacert +{ + lib, + fetchFromGitHub, + python3, + cacert, }: python3.pkgs.buildPythonApplication rec { @@ -16,17 +17,11 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-hLGaImYkv6/1Wv1a+0tKmW4qmV4akNoyd0RXopJjetI="; }; - pythonRelaxDeps = [ - "httpx" - ]; + pythonRelaxDeps = [ "httpx" ]; - build-system = with python3.pkgs; [ - poetry-core - ]; + build-system = with python3.pkgs; [ poetry-core ]; - nativeBuildInputs = with python3.pkgs; [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ]; dependencies = with python3.pkgs; [ aiofiles @@ -54,9 +49,7 @@ python3.pkgs.buildPythonApplication rec { pytest-asyncio ]; - pythonImportsCheck = [ - "gallia" - ]; + pythonImportsCheck = [ "gallia" ]; preCheck = '' export PATH=$out/bin:$PATH @@ -67,7 +60,10 @@ python3.pkgs.buildPythonApplication rec { homepage = "https://github.com/Fraunhofer-AISEC/gallia"; changelog = "https://github.com/Fraunhofer-AISEC/gallia/releases/tag/v${version}"; license = with licenses; [ asl20 ]; - maintainers = with maintainers; [ fab rumpelsepp ]; + maintainers = with maintainers; [ + fab + rumpelsepp + ]; platforms = platforms.linux; }; }