electrum: use dnspython 1.x

This commit is contained in:
Pavol Rusnak 2020-08-29 19:45:36 +02:00 committed by Frederik Rietdijk
parent 19c3507ab1
commit e1ef300ad1

View File

@ -3,7 +3,6 @@
, fetchFromGitHub , fetchFromGitHub
, wrapQtAppsHook , wrapQtAppsHook
, python3 , python3
, python3Packages
, zbar , zbar
, secp256k1 , secp256k1
, enableQt ? true , enableQt ? true
@ -22,6 +21,20 @@
let let
version = "4.0.2"; version = "4.0.2";
# electrum is not compatible with dnspython 2.0.0 yet
# use the latest 1.x release instead
py = python3.override {
packageOverrides = self: super: {
dnspython = super.dnspython.overridePythonAttrs (oldAttrs: rec {
version = "1.16.0";
src = oldAttrs.src.override {
inherit version;
sha256 = "36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01";
};
});
};
};
libsecp256k1_name = libsecp256k1_name =
if stdenv.isLinux then "libsecp256k1.so.0" if stdenv.isLinux then "libsecp256k1.so.0"
else if stdenv.isDarwin then "libsecp256k1.0.dylib" else if stdenv.isDarwin then "libsecp256k1.0.dylib"
@ -45,7 +58,7 @@ let
}; };
in in
python3Packages.buildPythonApplication { py.pkgs.buildPythonApplication {
pname = "electrum"; pname = "electrum";
inherit version; inherit version;
@ -61,7 +74,7 @@ python3Packages.buildPythonApplication {
nativeBuildInputs = stdenv.lib.optionals enableQt [ wrapQtAppsHook ]; nativeBuildInputs = stdenv.lib.optionals enableQt [ wrapQtAppsHook ];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with py.pkgs; [
aiohttp aiohttp
aiohttp-socks aiohttp-socks
aiorpcx aiorpcx
@ -116,7 +129,7 @@ python3Packages.buildPythonApplication {
wrapQtApp $out/bin/electrum wrapQtApp $out/bin/electrum
''; '';
checkInputs = with python3Packages; [ pytest ]; checkInputs = with py.pkgs; [ pytest ];
checkPhase = '' checkPhase = ''
py.test electrum/tests py.test electrum/tests