From b0a71c5f75dd6ca700426e8bda03e8031d8f153c Mon Sep 17 00:00:00 2001 From: kashw2 Date: Thu, 17 Aug 2023 20:58:57 +1000 Subject: [PATCH 1/2] stig: 0.12.2a0 -> 0.12.5a0 --- pkgs/applications/networking/p2p/stig/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/p2p/stig/default.nix b/pkgs/applications/networking/p2p/stig/default.nix index 21c59e84a445..e9b3c696b4fd 100644 --- a/pkgs/applications/networking/p2p/stig/default.nix +++ b/pkgs/applications/networking/p2p/stig/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitHub , python3Packages }: @@ -7,13 +8,13 @@ python3Packages.buildPythonApplication rec { pname = "stig"; # This project has a different concept for pre release / alpha, # Read the project's README for details: https://github.com/rndusr/stig#stig - version = "0.12.2a0"; + version = "0.12.5a0"; src = fetchFromGitHub { owner = "rndusr"; repo = "stig"; rev = "v${version}"; - sha256 = "0sk4vgj3cn75nyrng2d6q0pj1h968kcmbpr9sv1lj1g8fc7g0n4f"; + sha256 = "sha256-e27DBzing38llFxPIsMGkZJXp2q7jjFlQdtfsqLXNHw="; }; propagatedBuildInputs = with python3Packages; [ From 07afac881c8faa97614b60fe19f28d551b206f41 Mon Sep 17 00:00:00 2001 From: kashw2 Date: Thu, 17 Aug 2023 21:02:18 +1000 Subject: [PATCH 2/2] 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";