Merge pull request #260703 from gaelreyrol/toxiproxy-update-2.6.0

toxiproxy: 2.5.0 -> 2.6.0

authored by Peder Bergebakken Sundt and committed by GitHub 26aa3fc3 6d9a1efd

+24 -5
+24 -5
pkgs/development/tools/toxiproxy/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub }: 1 + { lib 2 + , buildGoModule 3 + , fetchFromGitHub 4 + , testers 5 + , toxiproxy 6 + }: 2 7 3 8 buildGoModule rec { 4 9 pname = "toxiproxy"; 5 - version = "2.5.0"; 10 + version = "2.6.0"; 6 11 7 12 src = fetchFromGitHub { 8 13 owner = "Shopify"; 9 14 repo = "toxiproxy"; 10 15 rev = "v${version}"; 11 - sha256 = "sha256-SL3YHsNeFw8K8lPrzJXAoTkHxS+1sTREfzjawBxdnf0="; 16 + sha256 = "sha256-wa39RsopmENXNEI5kiNIYSLGi/qGwIEfNVKWhAgVOuE="; 12 17 }; 13 18 14 - vendorHash = "sha256-CmENxPAdjz0BAyvhLKIaJjSbK/mvRzHGCQOfGIiA3yI="; 19 + vendorHash = "sha256-m6jZOVlJI3GGqCsCkMAIB2jg1Nk8oAELyzL3y4b2nqA="; 15 20 16 21 excludedPackages = [ "test/e2e" ]; 17 22 ··· 20 25 # Fixes tests on Darwin 21 26 __darwinAllowLocalNetworking = true; 22 27 23 - checkFlags = [ "-short" ]; 28 + checkFlags = [ "-short" "-skip=TestVersionEndpointReturnsVersion" ]; 24 29 25 30 postInstall = '' 26 31 mv $out/bin/cli $out/bin/toxiproxy-cli 27 32 mv $out/bin/server $out/bin/toxiproxy-server 28 33 ''; 29 34 35 + passthru.tests = { 36 + cliVersion = testers.testVersion { 37 + inherit version; 38 + package = toxiproxy; 39 + command = "${toxiproxy}/bin/toxiproxy-cli -version"; 40 + }; 41 + serverVersion = testers.testVersion { 42 + inherit version; 43 + package = toxiproxy; 44 + command = "${toxiproxy}/bin/toxiproxy-server -version"; 45 + }; 46 + }; 47 + 30 48 meta = { 49 + changelog = "https://github.com/Shopify/toxiproxy/releases/tag/v${version}"; 31 50 description = "Proxy for for simulating network conditions"; 32 51 homepage = "https://github.com/Shopify/toxiproxy"; 33 52 maintainers = with lib.maintainers; [ avnik ];