Ryan Omasta
2026-08-12 20:20:27 -06:00
parent 4a182c458b
commit 3ffc4733f9

View File

@@ -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 = ''