From 3ffc4733f9034112c97ec62b5d758dc413e8bbfd Mon Sep 17 00:00:00 2001 From: Ryan Omasta Date: Wed, 12 Aug 2026 20:20:27 -0600 Subject: [PATCH] electrum: 4.8.0 -> 4.8.1 https://github.com/spesmilo/electrum/blob/4.8.1/RELEASE-NOTES Diff: https://github.com/spesmilo/electrum/compare/4.8.0...4.8.1 --- pkgs/applications/misc/electrum/default.nix | 23 ++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index ae0950b70b13..c09b6dc1ee6f 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -9,6 +9,8 @@ enablePythonEcdsa ? false, callPackage, qtwayland, + + writableTmpDirAsHomeHook, }: let @@ -22,17 +24,15 @@ let in python3.pkgs.buildPythonApplication (finalAttrs: { pname = "electrum"; - version = "4.8.0"; + version = "4.8.1"; pyproject = true; src = fetchurl { url = "https://download.electrum.org/${finalAttrs.version}/Electrum-${finalAttrs.version}.tar.gz"; - hash = "sha256-z14bzs81eJNTMSWSBLTyCmsljDNztG54SVkoTcSqvsM="; + hash = "sha256-71t/YdLItZg6D5yFFVbjpveKncIv5hG7pJxu67a9/b4="; }; - build-system = with python3.pkgs; [ - setuptools - ]; + build-system = [ python3.pkgs.setuptools ]; nativeBuildInputs = [ python3.pkgs.pythonRelaxDepsHook @@ -90,11 +90,9 @@ python3.pkgs.buildPythonApplication (finalAttrs: { "protobuf" ]; - checkInputs = - with python3.pkgs; - lib.optionals enableQt [ - pyqt6 - ]; + checkInputs = lib.optionals enableQt [ + python3.pkgs.pyqt6 + ]; disabledTestPaths = lib.optionals (!enableQt) [ "tests/test_qml_types.py" ]; @@ -132,14 +130,15 @@ python3.pkgs.buildPythonApplication (finalAttrs: { pytestCheckHook pyaes pycryptodomex + + # avoid homeless-shelter error in tests + writableTmpDirAsHomeHook ]; enabledTestPaths = [ "tests" ]; - # avoid homeless-shelter error in tests preCheck = '' export PYTHONPATH=${python3.pkgs.protobuf}/${python3.sitePackages}:$PYTHONPATH - export HOME="$(mktemp -d)" ''; postCheck = ''