c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
56 lines
1,021 B
Nix
56 lines
1,021 B
Nix
{ lib
|
|
, bitbox02
|
|
, buildPythonPackage
|
|
, cbor
|
|
, ecdsa
|
|
, fetchFromGitHub
|
|
, hidapi
|
|
, libusb1
|
|
, mnemonic
|
|
, pyaes
|
|
, pyserial
|
|
, pythonOlder
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hwi";
|
|
version = "2.3.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bitcoin-core";
|
|
repo = "HWI";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-V4BWB4mCONQ8kjAy6ySonAbCUTaKpBTvhSnHmoH8TQM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bitbox02
|
|
cbor
|
|
ecdsa
|
|
hidapi
|
|
libusb1
|
|
mnemonic
|
|
pyaes
|
|
pyserial
|
|
typing-extensions
|
|
];
|
|
|
|
# Tests require to clone quite a few firmwares
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"hwilib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Bitcoin Hardware Wallet Interface";
|
|
homepage = "https://github.com/bitcoin-core/hwi";
|
|
changelog = "https://github.com/bitcoin-core/HWI/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ prusnak ];
|
|
};
|
|
}
|