HWI: allow building with unstable nixpkgs

This commit is contained in:
Jonas Nick
2020-05-03 18:32:49 +00:00
parent 199b9bf315
commit b7047c7286
4 changed files with 59 additions and 5 deletions
+10 -5
View File
@@ -1,12 +1,18 @@
{ stdenv, fetchurl, fetchFromGitHub, python3 }:
with stdenv.lib;
with python3.pkgs;
let
buildInputs = [ mnemonic ecdsa typing-extensions hidapi libusb1 pyaes ];
python = python3.override {
packageOverrides = self: super: {
# HWI requires mnemonic <0.19 but nixpkgs has a newer version
mnemonic = self.callPackage ./mnemonic {};
# HWI requires ecdsa <0.14 but nixpkgs has a newer version
ecdsa = self.callPackage ./ecdsa {};
};
};
in
buildPythonPackage rec {
python.pkgs.buildPythonPackage rec {
pname = "hwi";
version = "1.0.3";
@@ -20,8 +26,7 @@ buildPythonPackage rec {
# TODO: enable tests
doCheck = false;
inherit buildInputs;
propagatedBuildInputs = buildInputs;
propagatedBuildInputs = with python.pkgs; [ mnemonic ecdsa typing-extensions hidapi libusb1 pyaes ];
meta = with lib; {
homepage = https://github.com/bitcoin-core/hwi;