5a8b500490
GitOrigin-RevId: 1ca6b0a0cc38dbba0441202535c92841dd39d1ae
45 lines
809 B
Nix
45 lines
809 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, bitbox02
|
|
, ecdsa
|
|
, hidapi
|
|
, libusb1
|
|
, mnemonic
|
|
, pyaes
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hwi";
|
|
version = "2.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bitcoin-core";
|
|
repo = "HWI";
|
|
rev = version;
|
|
sha256 = "sha256-s0pKYqesZjHE6YndqsMwCuqLK7eE82oRiSXxBdUtEX4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bitbox02
|
|
ecdsa
|
|
hidapi
|
|
libusb1
|
|
mnemonic
|
|
pyaes
|
|
typing-extensions
|
|
];
|
|
|
|
# tests require to clone quite a few firmwares
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "hwilib" ];
|
|
|
|
meta = {
|
|
description = "Bitcoin Hardware Wallet Interface";
|
|
homepage = "https://github.com/bitcoin-core/hwi";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ prusnak ];
|
|
};
|
|
}
|