From 07afac881c8faa97614b60fe19f28d551b206f41 Mon Sep 17 00:00:00 2001 From: kashw2 Date: Thu, 17 Aug 2023 21:02:18 +1000 Subject: [PATCH] added passthru tests --- pkgs/applications/networking/p2p/stig/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/p2p/stig/default.nix b/pkgs/applications/networking/p2p/stig/default.nix index e9b3c696b4fd..61d42989705f 100644 --- a/pkgs/applications/networking/p2p/stig/default.nix +++ b/pkgs/applications/networking/p2p/stig/default.nix @@ -1,7 +1,9 @@ -{ lib +{ lib , stdenv , fetchFromGitHub , python3Packages +, testers +, stig }: python3Packages.buildPythonApplication rec { @@ -51,6 +53,12 @@ python3Packages.buildPythonApplication rec { "--deselect=tests/client_test/aiotransmission_test/rpc_test.py" ]; + passthru.tests = testers.testVersion { + package = stig; + command = "stig -v"; + version = "stig version ${version}"; + }; + meta = with lib; { description = "TUI and CLI for the BitTorrent client Transmission"; homepage = "https://github.com/rndusr/stig";