From 44f32b98c28728a786a1ae3d78344b210383d37f Mon Sep 17 00:00:00 2001 From: Louis Bettens Date: Sat, 28 Aug 2021 16:32:42 +0200 Subject: chia: don't run tests by default --- pkgs/applications/blockchains/chia/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'pkgs/applications/blockchains/chia/default.nix') diff --git a/pkgs/applications/blockchains/chia/default.nix b/pkgs/applications/blockchains/chia/default.nix index d98e4fb99bf..622f523316f 100644 --- a/pkgs/applications/blockchains/chia/default.nix +++ b/pkgs/applications/blockchains/chia/default.nix @@ -5,7 +5,7 @@ , python3Packages }: -python3Packages.buildPythonApplication rec { +let chia = python3Packages.buildPythonApplication rec { pname = "chia"; version = "1.2.5"; @@ -64,6 +64,10 @@ python3Packages.buildPythonApplication rec { pytestCheckHook ]; + # Testsuite is expensive and non-deterministic, so it is available in + # passthru.tests instead. + doCheck = false; + disabledTests = [ "test_spend_through_n" "test_spend_zero_coin" @@ -86,6 +90,10 @@ python3Packages.buildPythonApplication rec { export HOME=`mktemp -d` ''; + passthru.tests = { + chiaWithTests = chia.overrideAttrs (_: { doCheck = true; }); + }; + meta = with lib; { homepage = "https://www.chia.net/"; description = "Chia is a modern cryptocurrency built from scratch, designed to be efficient, decentralized, and secure."; @@ -93,4 +101,5 @@ python3Packages.buildPythonApplication rec { maintainers = teams.chia.members; platforms = platforms.all; }; -} +}; +in chia -- cgit 1.4.1