From 498ec787833b916cbc19f2b0b4c94bef21cacae6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 11 Oct 2024 00:22:06 +0200 Subject: [PATCH] coercer: modernize --- pkgs/tools/security/coercer/default.nix | 28 +++++++++++-------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/pkgs/tools/security/coercer/default.nix b/pkgs/tools/security/coercer/default.nix index c2e8ee3dfe21..2c7faee3a34b 100644 --- a/pkgs/tools/security/coercer/default.nix +++ b/pkgs/tools/security/coercer/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, python3 +{ + lib, + fetchFromGitHub, + python3, }: python3.pkgs.buildPythonApplication rec { pname = "coercer"; version = "2.4.3"; - format = "pyproject"; + pyproject = true; src = fetchFromGitHub { owner = "p0dalirius"; @@ -15,22 +16,16 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-WeaKToKYIB+jjTNIQvAUQQNb25TsNWALYZwIZuBjkPE="; }; - nativeBuildInputs = with python3.pkgs; [ - poetry-core - ]; + pythonRelaxDeps = [ "impacket" ]; - pythonRelaxDeps = [ - "impacket" - ]; + build-system = with python3.pkgs; [ poetry-core ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ impacket xlsxwriter ]; - pythonImportsCheck = [ - "coercer" - ]; + pythonImportsCheck = [ "coercer" ]; # this file runs into issues on case-insensitive filesystems # ValueError: Both <...>/coercer and <...>/coercer.py exist @@ -40,9 +35,10 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { description = "Tool to automatically coerce a Windows server"; - mainProgram = "coercer"; homepage = "https://github.com/p0dalirius/Coercer"; - license = with licenses; [ gpl2Only ]; + changelog = "https://github.com/p0dalirius/Coercer/releases/tag/${version}"; + license = licenses.gpl2Only; maintainers = with maintainers; [ fab ]; + mainProgram = "coercer"; }; }