2020-08-20 17:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mnemonic
|
|
|
|
, ecdsa
|
|
|
|
, typing-extensions
|
|
|
|
, hidapi
|
|
|
|
, libusb1
|
|
|
|
, pyaes
|
|
|
|
, trezor
|
|
|
|
, btchip
|
|
|
|
, ckcc-protocol
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hwi";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "1.2.1";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "d0d220a4967d7f106b828b12a98b78c220d609d7cc6c811898e24fcf1a6f04f3";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mnemonic
|
|
|
|
ecdsa
|
|
|
|
typing-extensions
|
|
|
|
hidapi
|
|
|
|
libusb1
|
|
|
|
pyaes
|
|
|
|
trezor
|
|
|
|
btchip
|
|
|
|
ckcc-protocol
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./relax-deps.patch ];
|
|
|
|
|
|
|
|
# tests are not packaged in the released tarball
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|