mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 23:02:38 +03:00
ab35dc29eb
Also remove unstable hwi build from travis because hwi requires mnemonic <0.19.0 but nixpkgs unstable has 0.19.0.
30 lines
584 B
Nix
30 lines
584 B
Nix
{ stdenv, fetchurl, fetchFromGitHub, python3 }:
|
|
|
|
with stdenv.lib;
|
|
with python3.pkgs;
|
|
|
|
let
|
|
buildInputs = [ mnemonic ecdsa typing-extensions hidapi libusb1 pyaes ];
|
|
in
|
|
buildPythonPackage rec {
|
|
pname = "hwi";
|
|
version = "1.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bitcoin-core";
|
|
repo = "HWI";
|
|
rev = version;
|
|
sha256 = "1xb8w6w6j6vv2ik2bb25y2w6m0gikmh5446jar0frfp6r6das5nn";
|
|
};
|
|
|
|
# TODO: enable tests
|
|
doCheck = false;
|
|
|
|
inherit buildInputs;
|
|
propagatedBuildInputs = buildInputs;
|
|
|
|
meta = with lib; {
|
|
homepage = https://github.com/bitcoin-core/hwi;
|
|
};
|
|
}
|