diff --git a/pkgs/by-name/ar/arsenal/package.nix b/pkgs/by-name/ar/arsenal/package.nix index 1c15265cb443..09a79fca6808 100644 --- a/pkgs/by-name/ar/arsenal/package.nix +++ b/pkgs/by-name/ar/arsenal/package.nix @@ -2,18 +2,19 @@ lib, fetchFromGitHub, python3, + versionCheckHook, }: python3.pkgs.buildPythonApplication rec { pname = "arsenal"; - version = "1.1.0"; - format = "pyproject"; + version = "1.2.7"; + pyproject = true; src = fetchFromGitHub { owner = "Orange-Cyberdefense"; repo = "arsenal"; - rev = version; - sha256 = "sha256-NbNXyR5aNKvRJU9JWGk/ndwU1bhNgDOdcRqBkAY9nPA="; + tag = version; + sha256 = "sha256-C8DEB/xojU7vGvmeBF+PBD6KWMaJgwa7PpRS5+YzQ6c="; }; build-system = with python3.pkgs; [ @@ -28,18 +29,18 @@ python3.pkgs.buildPythonApplication rec { pyyaml ]; - # Project has no tests - doCheck = false; + nativeCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; pythonImportsCheck = [ "arsenal" ]; - meta = with lib; { + meta = { description = "Tool to generate commands for security and network tools"; homepage = "https://github.com/Orange-Cyberdefense/arsenal"; - license = with licenses; [ gpl3Only ]; - maintainers = with maintainers; [ fab ]; + license = with lib.licenses; [ gpl3Only ]; + maintainers = with lib.maintainers; [ fab ]; mainProgram = "arsenal"; }; }