From 463bd286278a4873f7e97ee57ce44d2c2dd5a4e2 Mon Sep 17 00:00:00 2001 From: Anton Mosich Date: Sun, 5 Nov 2023 11:52:47 +0100 Subject: [PATCH] jrnl: add version test --- pkgs/applications/misc/jrnl/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/misc/jrnl/default.nix b/pkgs/applications/misc/jrnl/default.nix index 4adae2f32dc9..43d320a4c043 100644 --- a/pkgs/applications/misc/jrnl/default.nix +++ b/pkgs/applications/misc/jrnl/default.nix @@ -1,6 +1,8 @@ { lib , fetchFromGitHub , python3 +, testers +, jrnl }: python3.pkgs.buildPythonApplication rec { @@ -50,6 +52,11 @@ python3.pkgs.buildPythonApplication rec { "jrnl" ]; + passthru.tests.version = testers.testVersion { + package = jrnl; + version = "v${version}"; + }; + meta = with lib; { changelog = "https://github.com/jrnl-org/jrnl/releases/tag/v${version}"; description = "Simple command line journal application that stores your journal in a plain text file";