2019-11-17 14:20:35 +00:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, python3 }:
|
2019-04-29 20:39:25 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2019-11-17 14:20:35 +00:00
|
|
|
with python3.pkgs;
|
2019-04-29 20:39:25 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
buildInputs = [ mnemonic ecdsa typing-extensions hidapi libusb1 pyaes ];
|
|
|
|
in
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hwi";
|
2019-11-17 14:20:35 +00:00
|
|
|
version = "1.0.3";
|
2019-04-29 20:39:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bitcoin-core";
|
|
|
|
repo = "HWI";
|
2019-06-25 18:02:46 +00:00
|
|
|
rev = version;
|
2019-11-17 14:20:35 +00:00
|
|
|
sha256 = "1xb8w6w6j6vv2ik2bb25y2w6m0gikmh5446jar0frfp6r6das5nn";
|
2019-04-29 20:39:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: enable tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
propagatedBuildInputs = buildInputs;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/bitcoin-core/hwi;
|
|
|
|
};
|
|
|
|
}
|